MapElementsLayer.MapElementClick 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 or clicks a map element that is a child of this map layer.
// Register
event_token MapElementClick(TypedEventHandler<MapElementsLayer, MapElementClickEventArgs const&> const& handler) const;
// Revoke with event_token
void MapElementClick(event_token const* cookie) const;
// Revoke with event_revoker
MapElementsLayer::MapElementClick_revoker MapElementClick(auto_revoke_t, TypedEventHandler<MapElementsLayer, MapElementClickEventArgs const&> const& handler) const;
public event TypedEventHandler<MapElementsLayer,MapElementClickEventArgs> MapElementClick;
function onMapElementClick(eventArgs) { /* Your code */ }
mapElementsLayer.addEventListener("mapelementclick", onMapElementClick);
mapElementsLayer.removeEventListener("mapelementclick", onMapElementClick);
- or -
mapElementsLayer.onmapelementclick = onMapElementClick;
Public Custom Event MapElementClick As TypedEventHandler(Of MapElementsLayer, MapElementClickEventArgs)
Event Type
Remarks
This event is raised following the MapControl.MapElementClick event.