MapControl.ActualCameraChanging 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当地图相机的当前位置发生更改时发生。
// Register
event_token ActualCameraChanging(TypedEventHandler<MapControl, MapActualCameraChangingEventArgs const&> const& handler) const;
// Revoke with event_token
void ActualCameraChanging(event_token const* cookie) const;
// Revoke with event_revoker
MapControl::ActualCameraChanging_revoker ActualCameraChanging(auto_revoke_t, TypedEventHandler<MapControl, MapActualCameraChangingEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapActualCameraChangingEventArgs> ActualCameraChanging;
function onActualCameraChanging(eventArgs) { /* Your code */ }
mapControl.addEventListener("actualcamerachanging", onActualCameraChanging);
mapControl.removeEventListener("actualcamerachanging", onActualCameraChanging);
- or -
mapControl.onactualcamerachanging = onActualCameraChanging;
Public Custom Event ActualCameraChanging As TypedEventHandler(Of MapControl, MapActualCameraChangingEventArgs)
事件类型
注解
在地图动画中, ActualCamera 定义地图相机的当前位置, TargetCamera 定义相机的最终位置。