VEMap.onmodenotavailable 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 when the map mode fails to change to 3D mode.

VEMap.AttachEvent("onmodenotavailable", 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.

Use this event to determine whether the client computer has the ability to view maps in 3D mode. This event occurs whenever the Bing Maps 3D control fails to load. Typically this happens because the client software has not been installed or hardware acceleration is not enabled.