This topic has not yet been rated - Rate this topic

VEMap.oninitmode Event

Bing Services

Occurs after the map mode changes and the map has reloaded.


VEMap.AttachEvent("oninitmode", function_name);

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.

You can use the VEMap.GetMapMode Method to determine which mode the map is in after the mode has changed.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.