共用方式為


MapControl.CustomExperienceChanged 事件

定義

發生于 MapControl 的自訂體驗變更時。

// Register
event_token CustomExperienceChanged(TypedEventHandler<MapControl, MapCustomExperienceChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapControl::CustomExperienceChanged_revoker CustomExperienceChanged(auto_revoke_t, TypedEventHandler<MapControl, MapCustomExperienceChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapCustomExperienceChangedEventArgs> CustomExperienceChanged;
function onCustomExperienceChanged(eventArgs) { /* Your code */ }
mapControl.addEventListener("customexperiencechanged", onCustomExperienceChanged);
mapControl.removeEventListener("customexperiencechanged", onCustomExperienceChanged);
- or -
mapControl.oncustomexperiencechanged = onCustomExperienceChanged;
Public Custom Event CustomExperienceChanged As TypedEventHandler(Of MapControl, MapCustomExperienceChangedEventArgs) 

事件類型

備註

自訂體驗會變更地圖出現在 MapControl的方式。 例如, StreetsideExperience 會變更地圖的檢視方塊,就像您從街道層級檢視位置一樣。 輸入或現有的街道層級檢視會觸發 CustomExperienceChanged 事件。

適用於