| Package | com.esri.ags.virtualearth |
| Class | public class VETiledLayer |
| Inheritance | VETiledLayer TiledMapServiceLayer Layer mx.core.UIComponent |
Note: Bing Maps tiles and geocoding were added in version 1.2.
<esri:Map>
<esri:VETiledLayer
environment="production"
tokenURL=http://myserver:8081/ve/vetoken.jsp
mapStyle="road"
/>
</esri:Map>var veTiledLayer:VETiledLayer = new VETiledLayer(); veTiledLayer.tokenURL = "http://myserver:8081/ve/vetoken.jsp"; veTiledLayer.environment = "production"; veTiledLayer.mapStyle = VETiledLayer.MAP_STYLE_ROAD; myMap.addLayer(veTiledLayer);
See also
| Property | Defined by | ||
|---|---|---|---|
| clientToken : String
The Bing Maps client token.
| VETiledLayer | ||
| culture : String
The language of the culture to use for map labels on the Bing Maps tiles.
| VETiledLayer | ||
![]() | displayLevels : Array
Levels to display in layer, based on LOD.level.
| TiledMapServiceLayer | |
| environment : String
The Bing Maps server environment, use either "staging" or "production".
| VETiledLayer | ||
![]() | fadeInFrameCount : uint
The number of frames it will take for the tiles to fade in.
| TiledMapServiceLayer | |
![]() | fullExtent : Extent
The full extent of the layer.
| TiledMapServiceLayer | |
![]() | initialExtent : Extent
The initial extent of the layer.
| Layer | |
![]() | isInScaleRange : Boolean
Returns true if the current scale of the map is between the maximum and minimum scale of the layer [added in version 1.3].
| Layer | |
![]() | loaded : Boolean
When the layer is loaded, the value becomes "true" and layer properties can be accessed.
| Layer | |
![]() | map : Map
A reference to the Map this layer is in.
| Layer | |
| mapStyle : String
The map style can be set to "road" (default), "aerial" or "aerialWithLabels".
| VETiledLayer | ||
![]() | maxScale : Number = 0
The maximum scale of the layer [added in version 1.3].
| Layer | |
![]() | minScale : Number = 0
The minimum scale of the layer [added in version 1.3].
| Layer | |
| serverToken : String
The Bing Maps server token for use with the Virtual Earth adapter.
| VETiledLayer | ||
| spatialReference : SpatialReference
[read-only]
Returns a SpatialReference with a wkid value of 102100.
| VETiledLayer | ||
![]() | tileInfo : TileInfo
Contains information about the tiling scheme.
| TiledMapServiceLayer | |
| tokenDuration : Number
The duration of the token (until it expires).
| VETiledLayer | ||
| tokenURL : String
The URL to the "Get Virtual Earth Token" page.
| VETiledLayer | ||
| units : String [read-only]
Returns Units.METERS
| VETiledLayer | ||
| Method | Defined by | ||
|---|---|---|---|
|
VETiledLayer(environment:String = "staging", culture:String = "en-US", mapStyle:String = "road")
Creates a new VETiledLayer object.
| VETiledLayer | ||
![]() |
refresh():void
Causes the layer to redraw or reload its content.
| Layer | |
| Constant | Defined by | ||
|---|---|---|---|
| MAP_STYLE_AERIAL : String = "aerial" [static]
Bing Maps Aerial is the aerial imagery map style.
| VETiledLayer | ||
| MAP_STYLE_AERIAL_WITH_LABELS : String = "aerialWithLabels" [static]
Bing Maps Aerial with Labels is the aerial imagery map style with a road overlay.
| VETiledLayer | ||
| MAP_STYLE_ROAD : String = "road" [static]
Bing Maps Roads is the road map style.
| VETiledLayer | ||
| clientToken | property |
clientToken:String [read-write]The Bing Maps client token.
This property can be used as the source for data binding.
Implementation public function get clientToken():String
public function set clientToken(value:String):void
| culture | property |
culture:String [read-write]The language of the culture to use for map labels on the Bing Maps tiles.
The default value is en-US.
This property can be used as the source for data binding.
Implementation public function get culture():String
public function set culture(value:String):void
See also
| environment | property |
environment:String [read-write]The Bing Maps server environment, use either "staging" or "production".
The default value is staging.
This property can be used as the source for data binding.
Implementation public function get environment():String
public function set environment(value:String):void
| mapStyle | property |
mapStyle:String [read-write]The map style can be set to "road" (default), "aerial" or "aerialWithLabels".
The default value is road.
This property can be used as the source for data binding.
Implementation public function get mapStyle():String
public function set mapStyle(value:String):void
| serverToken | property |
serverToken:String [read-write]The Bing Maps server token for use with the Virtual Earth adapter.
This property can be used as the source for data binding.
Implementation public function get serverToken():String
public function set serverToken(value:String):void
| spatialReference | property |
spatialReference:SpatialReference [read-only]Returns a SpatialReference with a wkid value of 102100.
This property can be used as the source for data binding.
Implementation public function get spatialReference():SpatialReference
| tokenDuration | property |
tokenDuration:Number [read-write]The duration of the token (until it expires). If tokenURL is set, this will be passed to the tokenURL and new client and server tokens will be retrieved every (tokenDuration - 1) minutes.
The default value is 480 minutes.
This property can be used as the source for data binding.
Implementation public function get tokenDuration():Number
public function set tokenDuration(value:Number):void
| tokenURL | property |
tokenURL:String [read-write]The URL to the "Get Virtual Earth Token" page. The token retrieved from this URL will be set as the serverToken.
This property can be used as the source for data binding.
Implementation public function get tokenURL():String
public function set tokenURL(value:String):void
See also
| units | property |
units:String [read-only]Returns Units.METERS
This property can be used as the source for data binding.
Implementation public function get units():String
| VETiledLayer | () | constructor |
public function VETiledLayer(environment:String = "staging", culture:String = "en-US", mapStyle:String = "road")Creates a new VETiledLayer object.
Parametersenvironment:String (default = "staging") — Bing Maps server environment (staging or production)
|
|
culture:String (default = "en-US") — set the language of the culture for the map labels.
|
|
mapStyle:String (default = "road") — map style.
|
| MAP_STYLE_AERIAL | constant |
public static const MAP_STYLE_AERIAL:String = "aerial"Bing Maps Aerial is the aerial imagery map style.
| MAP_STYLE_AERIAL_WITH_LABELS | constant |
public static const MAP_STYLE_AERIAL_WITH_LABELS:String = "aerialWithLabels"Bing Maps Aerial with Labels is the aerial imagery map style with a road overlay.
| MAP_STYLE_ROAD | constant |
public static const MAP_STYLE_ROAD:String = "road"Bing Maps Roads is the road map style.