Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

VEMap.oninitmode Event

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

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


A String object representing the type of event that occurred.


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


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


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


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.

© 2015 Microsoft