Condividi tramite


MapElementsLayer.MapElementClick Evento

Definizione

Si verifica quando l'utente tocca o fa clic su un elemento mappa figlio di questo livello mappa.

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

Tipo evento

Commenti

Questo evento viene generato dopo l'evento MapControl.MapElementClick .

Si applica a