Salta al contenuto principale
' + '
'; var infowindow = new google.maps.InfoWindow(); var marker = new google.maps.Marker({ position: latLng, map: map, title: name, icon: "https://www.maisonre.it/sites/default/files/maisonre-pin.png" }); google.maps.event.addListener(marker, 'click', (function (marker, i) { return function () { var img_url = results.features[i].properties.image; var name = results.features[i].properties.name; var contratto = results.features[i].properties.contratto; var address = results.features[i].properties.address; var prezzo = results.features[i].properties.prezzo; var url = results.features[i].properties.url; var contentString = ''; infowindow.setContent(contentString); map.setCenter(marker.getPosition()); map.panBy(0, -120) infowindow.open(map, marker); } })(marker, i)); } }