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

Changes to allow event propagate #12

Closed moiarcsan closed 8 years ago

moiarcsan commented 9 years ago

Using this library to do an example in Firefox, I realised that if I want to stop the propagation of an event to the map when I clicked in a marker cluster, I couldn't, so for this reason I have implemented a functionality to pass the event variable in "triggerClusterClick" function to allow this variable arrived to handler event and stop the propagation from click event.

In this way, when I did a click in a marker cluster element, this click won't arrived to map.