Udostępnij za pośrednictwem


MapControl.ActualCameraChanged Event

Definition

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

// Register
event_token ActualCameraChanged(TypedEventHandler<MapControl, MapActualCameraChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapControl::ActualCameraChanged_revoker ActualCameraChanged(auto_revoke_t, TypedEventHandler<MapControl, MapActualCameraChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapActualCameraChangedEventArgs> ActualCameraChanged;
function onActualCameraChanged(eventArgs) { /* Your code */ }
mapControl.addEventListener("actualcamerachanged", onActualCameraChanged);
mapControl.removeEventListener("actualcamerachanged", onActualCameraChanged);
- or -
mapControl.onactualcamerachanged = onActualCameraChanged;
Public Custom Event ActualCameraChanged As TypedEventHandler(Of MapControl, MapActualCameraChangedEventArgs) 

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