MapControl.TargetCameraChanged 事件

定义

当地图相机的最终位置发生更改时发生。

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

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

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

事件类型

注解

在地图动画中, ActualCamera 定义地图相机的当前位置, TargetCamera 定义相机的最终位置。

适用于