'+ ''+ '
'+ ''+ '
'+markerData[i].title+'
'+ '
'+ markerData[i].price+ '
'+ '
'+ '
')); if(markerData[i].latLng[0] maxlat){ maxlat = markerData[i].latLng[0]; } if(markerData[i].latLng[1] maxlon){ maxlon = markerData[i].latLng[1]; } } map.addLayer(cluster); markers.push(cluster); centerlat = minlat+(maxlat-minlat)/2 centerlon = minlon+(maxlon-minlon)/2 // zoom // vérification si écran est plus long ou plus large var mapHtml = document.getElementById('map'); if(mapHtml.offsetWidth > mapHtml.offsetHeight){ nbterre = (mapHtml.offsetHeight / 256)*47.8211; taille = maxlat-minlat; } else{ nbterre = (mapHtml.offsetWidth / 256)*101.2988; taille = maxlon-minlon; } // calcul du zoom zoom = 0; while(taille '+ '
'+ '
'+ ''+ '
'+ ''+ '
'+markerData[i].title+'
'+ '
'+ markerData[i].price+ '
'+ '
'+ '
', disableAutoPan: false, pixelOffset: new google.maps.Size(-33, -90), zIndex: null, isHidden: true, alignBottom: true, closeBoxURL: "https://www.immoinov.fr/wp-content/themes/immoinov/lib/images/close.png", infoBoxClearance: new google.maps.Size(25, 25) }; newMarkers.push(marker); newMarkers[i].infobox = new InfoBox(infoboxOptions); google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { if ( newMarkers[i].infobox.getVisible() ) { newMarkers[i].infobox.hide(); } else { jQuery('.infoBox').hide(); newMarkers[i].infobox.show(); } newMarkers[i].infobox.open(map, this); map.setCenter(marker.getPosition()); map.panBy(0,-175); } })( marker, i ) ); google.maps.event.addListener(map, 'click', function() { jQuery('.infoBox').hide(); }); // Extend map bounds for this marker bounds.extend(markerData[i].latLng); } // for (each marker) // Create new map bounds to have all marker on the map // If not on single-property.php, as only required for multiple markers map.fitBounds(bounds); markerCluster = new MarkerClusterer(map, newMarkers, markerClusterOptions); return newMarkers; } // initMarkers()
'; // document.getElementById('map').appendChild(loading); // } // // Current Position // if (navigator.geolocation) { // navigator.geolocation.getCurrentPosition(function(current) { // var me = new google.maps.LatLng(current.coords.latitude, current.coords.longitude); // markerCurrent.setPosition(me); // map.panTo(me); // // Remove Loader // loading.remove(); // // https://developers.google.com/maps/documentation/javascript/examples/circle-simple // var currentRadiusCircleOptions = { // strokeColor: '#00CFF0', // strokeOpacity: 0.6, // strokeWeight: 2, // fillColor: '#00CFF0', // fillOpacity: 0.2, // map: map, // center: me, // visible: true, // radius: 1000 // Unit: meter // }; // // When Initializing // if ( !jQuery('#current-location-300942273').hasClass('draw') ) { // // Create Circle // currentRadiusCircle = new google.maps.Circle(currentRadiusCircleOptions); // } // jQuery('#current-location-300942273').addClass('draw'); // // Toggle Crrent Location Icon & Circle // if ( jQuery('#current-location-300942273').hasClass('active') ) { // markerCurrent.setMap(map); // currentRadiusCircle.setMap(map); // } // else { // markerCurrent.setMap(null); // currentRadiusCircle.setMap(null); // } // }); // } else { // console.log("Current Position Not Found"); // } // // Toggle Current Location Circle Visibility // google.maps.event.addListener(markerCurrent, 'click', (function() { // if ( currentRadiusCircle.getVisible() ) { // currentRadiusCircle.set( 'visible', false ); // } else { // currentRadiusCircle.set( 'visible', true ); // } // })); // }); // } //google.maps.event.addDomListener(window, 'load', map_controls);

Afficher plus d'options de recherche Masquer les options de recherche supplémentaires

Caractéristiques du bien :

« Tout ce que les hommes ont fait de beau et de bien, ils l’ont construit avec leurs rêves. »

La longue route, Bernard Moitessier, éd. Arthaud, 1971, p. 226
Défiler vers le haut