VEMap.ontokenerror 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.
This method is deprecated because Bing Maps keys have replaced tokens for authentication.
Occurs when the map control makes a request to the Bing Maps servers and the token that was set using the VEMap.SetClientToken Method is not valid.
VEMap.AttachEvent("ontokenerror", function_name);
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. |
Remarks
The ontokenerror and ontokenexpire events only occur when the map control makes a server request to Bing Maps with an invalid or expired token. The following map control methods make server requests: