Description
Class added v1.4.
Bing Maps tiled layer.
Class hierarchy
esri.layers.Layer
|_ esri.layers.TiledMapServiceLayer
|_ esri.virtualearth.VETiledLayer
Constructor
| esri.virtualearth.VETiledLayer(options) |
Creates a new VETiledLayer object. The parameters can be included in any order. Either tokenURL or serverToken and clientToken are required in the constructor. All other parameters are optional. |
Properties
Constants
Methods
Constructor Detail
esri.virtualearth.VETiledLayer(options)
Creates a new VETiledLayer object. The parameters can be included in any order. Either tokenURL or serverToken and clientToken are required in the constructor. All other parameters are optional.
Parameters:
|
<Object>
options |
Required |
See options list for parameters.
|
Options:
|
<String>
clientToken |
Note: Either tokenURL or serverToken and clientToken are required in the constructor.
The Bing Maps Web services token used by the browser to make Bing Maps tile requests.
|
|
<String>
culture |
Specifies the culture in which to return results. The default value is "en-US". For a list of supported cultures, see http://msdn.microsoft.com/en-us/library/cc981048.aspx.
|
|
<String>
environment |
The Bing Maps server environment, use either "staging" or "production".
|
|
<String>
mapStyle |
Bing Maps style. See Constants table for valid values.
|
|
<String>
serverToken |
Note: Either tokenURL or serverToken and clientToken are required in the constructor.
The Bing Maps Web services token used by the ArcGIS VEAdapter to make Bing Maps imagery service metadata requests.
|
|
<String>
tokenDuration |
The duration of the token in minutes. The minimum value is 15 and the maximum value is 480 (8 hours).
|
|
<String>
tokenUrl |
Note: Either tokenURL or serverToken and clientToken are required in the constructor.
The root URL of the "Get Virtual Earth Token" page. For more information, see Getting started with Bing Maps in the ArcGIS JavaScript API.
|
Properties Detail
The Bing Maps Web services token used by the browser to make Bing Maps tile requests.
The Bing Maps server environment, use either "staging" or "production".
Known values: staging | production
Default value: staging
Bing Maps style. See Constants table for valid values.
Default value: MAP_STYLE_ROAD
The Bing Maps Web services token used by the ArcGIS VEAdapter to make Bing Maps imagery service metadata requests.
Duration of the Bing Maps token in minutes. The minimum is 15, and the maximum is 480 (8 hours).
Default value: 480
Methods Detail
setClientToken(clientToken)
Updates client token.
Return value: none
Input Parameters:
|
<String> clientToken |
Required |
The new token to update with. |
Sets the culture in which to return results.
Return value: none
Input Parameters:
Sets the Bing Maps style.
Return value: none
Input Parameters:
|
<String> style |
Required |
Bing Maps style. See Constants table for valid values. |
setServerToken(serverToken)
Updates server token.
Return value: none
Input Parameters:
|
<String> serverToken |
Required |
The new token to update with. |