Triggered when the map is 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<CoordinatesEventArgs> Click

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 a Marker at the clicked location.

CopyC#
void Map_Click(object sender, CoordinatesEventArgs e)
{
    Marker marker = new Marker("ID", e.Position);
    e.MapCommand = e.Map.AddOverlay(marker, true);
}

See Also