Delen via


MapScene.TargetCameraChanged Event

Definition

Occurs when the final position of the map's camera has changed.

// Register
event_token TargetCameraChanged(TypedEventHandler<MapScene, MapTargetCameraChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapScene::TargetCameraChanged_revoker TargetCameraChanged(auto_revoke_t, TypedEventHandler<MapScene, MapTargetCameraChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapScene,MapTargetCameraChangedEventArgs> TargetCameraChanged;
function onTargetCameraChanged(eventArgs) { /* Your code */ }
mapScene.addEventListener("targetcamerachanged", onTargetCameraChanged);
mapScene.removeEventListener("targetcamerachanged", onTargetCameraChanged);
- or -
mapScene.ontargetcamerachanged = onTargetCameraChanged;
Public Custom Event TargetCameraChanged As TypedEventHandler(Of MapScene, MapTargetCameraChangedEventArgs) 

Event Type

Remarks

During an animation of the map, the ActualCamera defines the current position of the map's camera and TargetCamera defines the final position of the camera.

Applies to