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 773 forks source link

Click event on ClusterIcon can't be stopped from propagating. #15

Open sodik82 opened 9 years ago

sodik82 commented 9 years ago

I have a map with clustered icons where I have registered click event for whole map and for each marker. To capture clicks on clustered markers I have also registered clusterclick listener that shows window info.

When I click cluster icon, window info is shown but in addition also map's click event is triggered. This is in contrast to ordinary markers, where click only shows window info but stops propagate event to the map.

As a workaround I have implemented simple quick fix in https://github.com/sodik82/js-marker-clusterer/commit/a6ce4786511e94f457b4a7883b1beee9366aa04c but maybe more proper solution can be implemented (via property or something else - pass event to clusterclick callback function?)