I have a marker on the map to which I want to bind two events:
I want to do the following:
- When the user clicks on the marker, the map should enlarge and show a more detailed map.
- I want to associate the dblclick event with the same marker so that it loads some third-party reports into the adjacent div element.
In other words, I want it to behave differently when the user clicks or dblclicks. But the problem is that when I bind both of these events to the marker and double clicks of the user, the marker, the 'click' handler fires, and I donβt want this to happen.
Is it true that when the user double-clicks the click event also fires? If so, how can I prevent the 'click' event from triggering when the user actually double-clicks? Is there a way that I can do different things when clicking and marker double-click event?
source share