I've got the Cluster Marker working successfully on some markers, however, it seems that if the area is too congested the cluster won't appear. I'm using the Javascript API.
this.map = new google.maps.Map(map, mapOptions);
this.markers = data.map((location) => {
if (location.location === null) return
const marker = new google.maps.Marker({
position: { lat: location.location.coordinates[0], lng: location.location.coordinates[1]},
map: this.map
});
return marker
});
const markerCluster = new MarkerClusterer(this.map, this.markers, {
imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'
});
I would post an image but I need more reputation.
Should I switch to a heatmap or is this a known limitation of the cluster library?
EDIT It seems when I limit the amount of markers to 179, it clusters them all, but when I limit to 180, the 180th is placed outside the cluster
