MapControl.MapTapped Event

Definition

Occurs when the user taps the MapControl or clicks on it with the left mouse button. An instance of MapInputEventArgs provides data for this event.

// Register
event_token MapTapped(TypedEventHandler<MapControl, MapInputEventArgs const&> const& handler) const;

// Revoke with event_token
void MapTapped(event_token const* cookie) const;

// Revoke with event_revoker
MapControl::MapTapped_revoker MapTapped(auto_revoke_t, TypedEventHandler<MapControl, MapInputEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapInputEventArgs> MapTapped;
function onMapTapped(eventArgs) { /* Your code */ }
mapControl.addEventListener("maptapped", onMapTapped);
mapControl.removeEventListener("maptapped", onMapTapped);
- or -
mapControl.onmaptapped = onMapTapped;
Public Custom Event MapTapped As TypedEventHandler(Of MapControl, MapInputEventArgs) 

Event Type

Applies to

See also