Dela via


MapElementsLayer.MapElementClick Event

Definition

Occurs when the user taps or clicks a MapElement that has been add to the MapElementsLayer.

// Register
event_token MapElementClick(TypedEventHandler<MapElementsLayer, MapElementsLayerClickEventArgs 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, MapElementsLayerClickEventArgs const&> const& handler) const;
public event TypedEventHandler<MapElementsLayer,MapElementsLayerClickEventArgs> 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, MapElementsLayerClickEventArgs) 

Event Type

Remarks

Touch, mouse, and pen/stylus interactions are received, processed, and managed as pointers. Any of these devices and their interactions can produce a MapElementsClick event. An instance of MapElementsLayerClickEventArgs provides data for this event.

Applies to