googlearchive / js-marker-clusterer

A marker clustering library for the Google Maps JavaScript API v3.
https://googlemaps.github.io/js-marker-clusterer/docs/reference.html
Apache License 2.0
1.28k stars 775 forks source link

Polygon on cluster hover #126

Open maximou4391 opened 7 years ago

maximou4391 commented 7 years ago

Hi,

I'm trying to show a polygon that cover all the markers inside a cluster when hovering this cluster (like leaflet markerCluster is doing: https://github.com/Leaflet/Leaflet.markercluster). So I manage to do it with google maps polygon but the problem is that the polygon is repeating itself when the zoom is 0,1 or 2 (Because countries are shown multiple times).

So I was wondering if its possible to draw a polygon inside an OverlayView (which doesn't repeat multiple times, like the clusters) ?

Thanks a lot,

Maxime.

Remo commented 7 years ago

If you have a jsfiddle or something where we could see the problem I'd be happy to help, but please post your problem over here https://github.com/gmaps-marker-clusterer/gmaps-marker-clusterer. This repo isn't maintained anymore, thanks!