MapElementsLayer.MapContextRequested Evento

Definição

Ocorre quando o usuário conclui um gesto de entrada de contexto em uma camada de mapa, como um clique com o botão direito do 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 de evento

Aplica-se a