MapControl.CustomExperienceChanged Event

Definition

Occurs when the custom experience of the MapControl changes.

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

Event Type

Remarks

Custom experiences change the way maps appear in the MapControl. For example, the StreetsideExperience changes the perspective of the map to appear as though you were viewing a location from the street level. Entering or existing a street-level view will trigger the CustomExperienceChanged event.

Applies to