Class: VETiledLayer

Description

Class added v1.4.
dojo.require("esri.virtualearth.VETiledLayer");

Bing Maps tiled layer. At version 2.0, Bing Maps uses a key instead of token, client and server. If you are working with the 1.x version of the ArcGIS JavaScript API, you will need to use tokens, view the information here on setting up a Virtual Earth token page.

Samples

Search for samples that use this class.  

Class hierarchy

esri.layers.Layer
  |_ esri.layers.TiledMapServiceLayer
        |_ esri.virtualearth.VETiledLayer

Constructor

Constructor Description
esri.virtualearth.VETiledLayer(options) Creates a new VETiledLayer object.

Properties

Property Type Description
culture String 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.
mapStyle String Bing Maps style. See Constants table for valid values.

Constants

Constant Description
MAP_STYLE_AERIAL Bing Maps Aerial layer.
MAP_STYLE_AERIAL_WITH_LABELS Bing Maps Aerial with Labels layer.
MAP_STYLE_ROAD Bing Maps Roads layer.

Methods

Method Return Value Description
setCulture(culture) none Sets the culture in which to return results.
setMapStyle(style) none Sets the Bing Maps style.
Constructor Detail

esri.virtualearth.VETiledLayer(options)

Creates a new VETiledLayer object.
Parameters:
<Object> options Required See options list for parameters.
Options:
<String> bingMapsKey Key used to access Bing Maps maps. View the Getting start with Bing Maps help topic for more details.
<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> mapStyle Bing Maps style. See Constants table for valid values.
Code snippets:
 
var veTileLayer = new esri.virtualearth.VETiledLayer({
  bingMapsKey: 'Al0VE_jsmagxk4LFghXGlK5JSHfC0tk-eHRubZv_eMYm6wzgQaStYks8g-wWcgk3',
  mapStyle: esri.virtualearth.VETiledLayer.MAP_STYLE_AERIAL
});
Properties Detail

<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.
Default value: en-US
See also:
setCulture  

<String> mapStyle

Bing Maps style. See Constants table for valid values.
Default value: MAP_STYLE_ROAD
See also:
setMapStyle  
Methods Detail

setCulture(culture)

Sets the culture in which to return results.
Return value: none
Input Parameters:
<String> culture Required The culture value. The default value is "en-US". For a list of supported cultures, see http://msdn.microsoft.com/en-us/library/cc981048.aspx.
See also:
culture  

setMapStyle(style)

Sets the Bing Maps style.
Return value: none
Input Parameters:
<String> style Required Bing Maps style. See Constants table for valid values.
See also:
mapStyle