Triggered when the map is right clicked.

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

Syntax

C#
public event EventHandler<PixelEventArgs> RightClick

Remarks

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.

Examples

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

CopyC#
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