Richmarker For Google Maps V3 - Click Falls Through Marker
I am using RichMarker for Google Maps v3 as found at https://googlemaps.github.io/js-rich-marker/reference.html I have successfully been able to register clicking on the marker wit
Solution 1:
You'll need to modify the library.
Find this part:
google.maps.event.addDomListener(this.markerContent_, 'click', function(e) {
google.maps.event.trigger(that, 'click');
});
and change it to
google.maps.event.addDomListener(this.markerContent_, 'click', function(e) {
e.stopPropagation();
google.maps.event.trigger(that, 'click');
});
Solution 2:
google.maps.event.addListener(richMarker, 'click', function(event)
{
// your stuff hereevent.preventDefault();
event.stopPropagation();
event.preventDefault();
});
Post a Comment for "Richmarker For Google Maps V3 - Click Falls Through Marker"