Need to have right-click event on google map marker.
Is there any javascript plugin for web application to implement the same?
Need to have right-click event on google map marker.
Is there any javascript plugin for web application to implement the same?
Try to use the long press event in place of right click
Like this
HTML:
<a href="" title="">Long press</a>
JavaScript
$("a").mouseup(function(){
// Clear timeout
return false;
}).mousedown(function(){
// Set timeout
return false;
});
You just need to apply a rightclick event to the marker and when right clicked it will pass the MouseEvent to a specified callback. Like this:
marker.addListener("rightclick", callback(event));
Here is the MouseEvent documentation and here is the Marker object documentation.