killlllme / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

MarkerClustererPlus : Click event propagates to underlying Map ! #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a 'click' event is attached to the map where a MarkerClustererPlus V3 is 
used, when a cluster icon is clicked the map click event is triggered, which 
should not happen. 

In the same configuration, when a regular marker is clicked, the map click 
event is NOT triggered. The same should apply to a cluster icon. 

Demo link or sample code:
google.maps.event.addListener(Map, 'click', function(event) {
  DoStuff();
});

I click a cluster icon, DoStuff gets executed.

Epected result:
Maps zoom to display the cluster contents.

Actual result:
Maps zoom to display the cluster contents then DoStuff gets executed.

Version: MarkerClusteredPlus V3

Browser / Operating System:
Any

Original issue reported on code.google.com by istras...@gmail.com on 20 Sep 2011 at 2:18

GoogleCodeExporter commented 9 years ago
The new trunk version of MarkerClustererPlus that I've just posted should fix 
this problem.

See 
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererpl
us/src/markerclusterer.js

Original comment by garylitt...@gmail.com on 21 Sep 2011 at 11:18

GoogleCodeExporter commented 9 years ago

Original comment by garylitt...@gmail.com on 21 Sep 2011 at 11:19

GoogleCodeExporter commented 9 years ago
Wonderful, thanks for the very quick fix ! 

Original comment by istras...@gmail.com on 22 Sep 2011 at 10:35

GoogleCodeExporter commented 9 years ago

Original comment by garylitt...@gmail.com on 22 Sep 2011 at 10:16