MapControl.MapTapped Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)