I have to handle two events which are 'click' and 'dblclick' but the click event always fires before dblclick event and don't let dblclick event to execute. How can I make the event to execute correctly 'click' and 'dblclick'
google.maps.event.addListener(map, 'dblclick', function(event) {
polygon(map, event.latLng)
});
google.maps.event.addListener(map, 'click', function(event) {
click_events(map, event.latLng)
});