共用方式為


MapControl.ActualCameraChanged 事件

定義

發生于地圖相機的目前位置已變更時。

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

事件類型

備註

在地圖動畫期間, ActualCamera 會定義地圖相機的目前位置, 而 TargetCamera 會定義相機的最終位置。

適用於