MapElementsLayer.MapContextRequested Событие

Определение

Происходит, когда пользователь завершил жест ввода контекста на слое карты, например щелчок правой кнопкой мыши.

// Register
event_token MapContextRequested(TypedEventHandler<MapElementsLayer, MapElementsLayerContextRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapElementsLayer::MapContextRequested_revoker MapContextRequested(auto_revoke_t, TypedEventHandler<MapElementsLayer, MapElementsLayerContextRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapElementsLayer,MapElementsLayerContextRequestedEventArgs> MapContextRequested;
function onMapContextRequested(eventArgs) { /* Your code */ }
mapElementsLayer.addEventListener("mapcontextrequested", onMapContextRequested);
mapElementsLayer.removeEventListener("mapcontextrequested", onMapContextRequested);
- or -
mapElementsLayer.onmapcontextrequested = onMapContextRequested;
Public Custom Event MapContextRequested As TypedEventHandler(Of MapElementsLayer, MapElementsLayerContextRequestedEventArgs) 

Тип события

Применяется к