OOS Sculpture
Charles P. Taft, II Memorial
Curvilinear form with open areas which seem to stretch towards one side.
',
});
marker.addListener('click', function() {
infowindow.setContent(this.html);
infowindow.open(map, this);
});
var latlng = new google.maps.LatLng(p['lat'], p['lon']);
latlngbounds.extend(latlng);
}
map.fitBounds(latlngbounds);
if(zoomToItem){
var listener = google.maps.event.addListener(map, "idle", function() {
// set zoom level to single item settings
map.setZoom(points[0]['zoom']);
// open single marker
if(w>600){
infowindow.setContent(marker.html);
infowindow.open(map, marker);
}
google.maps.event.removeListener(listener);
});
}
}
initMap();
function map_fullscreen(e){
var parent = jQuery( e ).parents('figure');
parent.toggleClass('fullscreen');
var txt = jQuery(parent).hasClass('fullscreen') ? 'Close' : 'View';
jQuery('#sculptures-map #fullscreen-request toggle').text(txt);
google.maps.event.trigger(map, 'resize');
}
function map_geolocation(){
map = window.map;
if (hasGeolocationSupport) {
var options = {
enableHighAccuracy: true,
maximumAge: 30000,
timeout: 15000
};
jQuery('#sculptures-map circle').addClass('trying');
navigator.geolocation.getCurrentPosition(function(position) {
console.log(position.coords.latitude,position.coords.longitude);
user = new google.maps.LatLng(position.coords.latitude , position.coords.longitude);
var marker = new google.maps.Marker({
position: user,
map: map,
icon: {
path: google.maps.SymbolPath.CIRCLE,
scale: 10,
strokeColor: '#FFFFFF',
strokeOpacity: 1.0,
strokeWeight: 3,
fillColor: '#4285F4',
fillOpacity: 1.0,
},
});
latlngbounds.extend(user);
map.fitBounds(latlngbounds);
if(panToUser){ // global map only
map.panTo(user);
map.setZoom(12);
}
jQuery('#sculptures-map circle').addClass('enabled').removeClass('trying');
jQuery('#sculptures-map #location-request toggle').text('Your');
}, function(error) {
alert('Geo Location is not supported');
}, options);
}else{
alert('Error: navigator.geolocation');
}
}
});