-3

Need to have right-click event on google map marker.

Is there any javascript plugin for web application to implement the same?

admdrew
  • 3,790
  • 4
  • 27
  • 39

2 Answers2

1

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; 
});
Alessandro Carughi
  • 938
  • 1
  • 6
  • 15
-1

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.

Caio Gomes
  • 681
  • 1
  • 11
  • 23