Share via


MapElementsLayer.MapContextRequested Evento

Definizione

Si verifica quando l'utente ha completato un movimento di input del contesto su un livello mappa, ad esempio un clic con il pulsante destro del mouse.

// 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) 

Tipo evento

Si applica a