Triggered when the map is right clicked.

Namespace: Reimers.Google.Map
Assembly: Reimers.Google.Map (in Reimers.Google.Map.dll) Version: (


public event EventHandler<PixelEventArgs> RightClick


The event is triggered as a result of a asynchronous callback to the server. While this allows for event handling using serverside code, all changes to the page (either the map or other controls on the page) must be done using JavaScript commands passed to the MapCommand of the event arguments parameter.


The following code shows how to add an overlay on the place that was right clicked on the map.

void GMap_RightClick(object sender, PixelEventArgs e)
    Marker marker = new Marker(DateTime.Now.Millisecond.ToString(), e.Position);
    e.MapCommand = e.Map.AddOverlay(marker, true);

See Also