Visto che ho anche un array di markers ho provato anche a usare il metodo addMarkers(allMyMarkers,true) dopo il mymap.fitbounds ma con lo stesso risultato... sempre getPosition is not a function :-(
Esperti di mappe, aiuto!!!codice:... //markerCluster.addMarker(marker, false); marker.addListener('click', function () { infoWindow.setContent(infowincontent); infoWindow.open(mymap, marker); }); //locations.push(point); allMyMarkers.push(marker); }); //fine array mymap.fitBounds(bounds); // Add a marker clusterer to manage the markers in locations array. var markerCluster = new MarkerClusterer(mymap, markers, { imagePath: '/Google%20Maps%20Markers' }); markerCluster.addMarkers(allMyMarkers, true); });

Rispondi quotando