edmckee / 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

rightclick / contextmenu event for MarkerClustererPlus #207

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Can you please add contextmenu / rightclick event for MarkerClustererPlus?

This can be easily done with this code:

google.maps.event.addDomListener(this.div_, "contextmenu", function (e) {
    var mc = cClusterIcon.cluster_.getMarkerClusterer();
    google.maps.event.trigger(mc, "contextmenu", cClusterIcon.cluster_);
});

It could be placed near the other corresponding methods like click or mouseover 
and mouseout.

Thank you for this great tool.

Johannes

Original issue reported on code.google.com by johannes...@gmail.com on 24 Oct 2012 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by garylitt...@gmail.com on 3 Nov 2012 at 3:46