"
},
// create marker
{
lat: 48.02954995,
lng:11.60074645,
url:"https://www.dahoam.immo/ff/immobilien/6599-schoene-doppelhaushaelfte-modern-und-smart/estates/faee8ce3-d5ee-4cef-96d0-316f2e473e50",
label: {
text: "1.239.000,00 €",
fontSize: "10",
color: "rgba(255,255,255,.8)"
},
info:"
Doppelhaushälfte
1.239.000,00 €
"
},
]
// create markers
var markers = locations.map(function(location, i) {
var marker = new google.maps.Marker({
position: location,
map: map,
label: location.label,
info:location.info,
draggable: false,
icon: icon
});
bounds.extend(location);
// open
google.maps.event.addListener(marker, 'click', function() {
window.location.href = location.url;
});
return marker;
});
// bounce map around all marker
if( locations.length > 1)
{
map.fitBounds(bounds);
}
// create cluster markers
var markerCluster = new MarkerClusterer(map, markers,{styles: cluster_styles});
google.maps.event.addListener(markerCluster, 'clusterclick', function(cluster) {
var markers = cluster.getMarkers();
var array = [];
var str = "";
if (map.getZoom() >= 12) {
for(i = 0; i
');
return ('data:image/svg+xml;base64,' + encoded);
};
var getGoogleClusterMarkerSvg = function (color) {
var encoded = window.btoa('
');
return ('data:image/svg+xml;base64,' + encoded);
};