var marker = new google.maps.Circle({
strokeColor: strokeColor,
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: fillColor,
fillOpacity: 0.35,
center: center,
radius: radius
});
but when I try to cluster,
var markerCluster = new MarkerClusterer(map, marker, {imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});
It gives me error:
markerclusterer.js:653 Uncaught TypeError: marker.getPosition is not a function
I checked the proto and sure it does not have the getPosition() unlike in case when I create a regular marker like,
var marker = new google.maps.Marker({
position: location
});
Hi, I'm trying to do clustering of circle markers
but when I try to cluster,
var markerCluster = new MarkerClusterer(map, marker, {imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});
It gives me error:
markerclusterer.js:653 Uncaught TypeError: marker.getPosition is not a function
I checked the proto and sure it does not have the getPosition() unlike in case when I create a regular marker like,