VEMap.onchangeview Event

Occurs whenever the map view changes.

VEMap.AttachEvent("onchangeview", function_name);
Remarks

The onchangeview event fires whenever the map changes, including a change in the center point, the zoom level, or the map style. For example, if a user pans the map by using the compass control, the onchangeview event fires.

Return Value

A MapEvent object, which has the following properties:

Property Description

eventName

A String object representing the type of event that occurred.

mapStyle

The current map style as a String. Valid String results are a, r, h, and o.

sceneID

If the map style is set to bird's eye (oblique), the unique identifier of the current bird's eye scene.

sceneOrientation

If the map style is set to bird's eye (oblique), the orientation of the current bird's eye scene.

zoomLevel

The current zoom level of the map.

See Also

Reference

VEMap.onchangemapstyle Event

Page view tracker