MapControl.CustomExperienceChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.