| Package | com.esri.ags.layers |
| Class | public class ArcGISTiledMapServiceLayer |
| Inheritance | ArcGISTiledMapServiceLayer TiledMapServiceLayer Layer mx.core.UIComponent |
| Implements | ILegendSupport |
The projection of the map is determined by the first visible layer. The tiling scheme (scale levels) is determined by the first ArcGISTiledMapServiceLayer.
Note that ArcGISTiledMapServiceLayer, like all layers, extend UIComponent and thus include basic mouse events, for example: click, mouseOut, mouseOver, and mouseDown, as well as other events like show and hide, and general properties, such as alpha and visible.
See also
| Property | Defined By | ||
|---|---|---|---|
| capabilities : Array [read-only]
Capabilities of the map service, possible array values are Map, Query, and Data. | ArcGISTiledMapServiceLayer | ||
| copyright : String [read-only]
Map copyright as defined by the map service. | ArcGISTiledMapServiceLayer | ||
| description : String [read-only]
Map description as defined by the map service. | ArcGISTiledMapServiceLayer | ||
![]() | displayLevels : Array
Levels to display in layer, based on LOD.level. | TiledMapServiceLayer | |
![]() | fadeInFrameCount : uint
The number of frames it will take for the tiles to fade in. | TiledMapServiceLayer | |
| fullExtent : Extent [override] [read-only]
Full extent as defined by the map service. | ArcGISTiledMapServiceLayer | ||
| initialExtent : Extent [override] [read-only]
Initial extent as defined by the map service. | ArcGISTiledMapServiceLayer | ||
![]() | isInScaleRange : Boolean [read-only]
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 | |
| layerInfos : Array [read-only]
The available layers in the map service and their default visibility. | ArcGISTiledMapServiceLayer | ||
| layerInfoWindowRenderers : Array
Array of LayerInfoWindowRenderers that allow you to define infoWindowRenderers for specific layers [added in version 2.3]. | ArcGISTiledMapServiceLayer | ||
![]() | loaded : Boolean [read-only]
When the layer is loaded, the value becomes "true" and layer properties can be accessed. | Layer | |
![]() | loadFault : Fault [read-only]
A reference to the fault that is dispatched when the layer throws a loadError event. | Layer | |
![]() | map : Map [read-only]
A reference to the Map this layer is in. | Layer | |
![]() | maxScale : Number
The maximum scale of the layer [added in version 1.3]. | Layer | |
![]() | minScale : Number
The minimum scale of the layer [added in version 1.3]. | Layer | |
| proxyURL : String
The URL to proxy the request through. | ArcGISTiledMapServiceLayer | ||
| requestTimeout : int
The request timeout in seconds. | ArcGISTiledMapServiceLayer | ||
| serviceDescription : String [read-only]
Map service description as defined by the map service. | ArcGISTiledMapServiceLayer | ||
| spatialReference : SpatialReference [override] [read-only]
The spatial reference of the map service. | ArcGISTiledMapServiceLayer | ||
| tableInfos : Array [read-only]
The stand-alone tables in the map service [added in version 2.0]. | ArcGISTiledMapServiceLayer | ||
| tileInfo : TileInfo [override] [read-only]
Contains information about the tiling scheme. | ArcGISTiledMapServiceLayer | ||
| tileServers : Array
List of URL endpoints to load from. | ArcGISTiledMapServiceLayer | ||
| timeInfo : TimeInfo [read-only]
Only timeExtent and timeReference properties may be available [added in version 2.0]. | ArcGISTiledMapServiceLayer | ||
| token : String
Token for accessing a secure tiled ArcGIS service. | ArcGISTiledMapServiceLayer | ||
| units : String [override] [read-only]
The units of the layer. | ArcGISTiledMapServiceLayer | ||
| url : String
URL endpoint of a service. | ArcGISTiledMapServiceLayer | ||
| version : Number [read-only]
The version of ArcGIS Server where the map service is published to, for example, 9.3, 9.31, 10, 10.01 or 10.1. | ArcGISTiledMapServiceLayer | ||
| visibleLayers : ArrayCollection [read-only]
The visible layers as defined by the default visibility in LayerInfo. | ArcGISTiledMapServiceLayer | ||
| Method | Defined By | ||
|---|---|---|---|
ArcGISTiledMapServiceLayer(url:String = null, proxyURL:String = null, token:String = null)
Creates a new ArcGISTiledMapServiceLayer object. | ArcGISTiledMapServiceLayer | ||
getAllDetails(responder:IResponder = null):AsyncToken
Gets the detailed information for all the ArcGIS layers and tables in the service. | ArcGISTiledMapServiceLayer | ||
getDetails(layerOrTableId:Number, responder:IResponder = null):AsyncToken
Gets the detailed information for an ArcGIS layer or table. | ArcGISTiledMapServiceLayer | ||
getLegendInfos(responder:IResponder = null):AsyncToken
Gets legend infos. | ArcGISTiledMapServiceLayer | ||
![]() | refresh():void
Causes the layer to redraw or reload its content. | Layer | |
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when getAllDetails or getDetails operations fails. | ArcGISTiledMapServiceLayer | |||
| Dispatched when an getAllDetails operation successfully completes. | ArcGISTiledMapServiceLayer | |||
| Dispatched when an getDetails operation successfully completes. | ArcGISTiledMapServiceLayer | |||
![]() | Fires if the value of isInScaleRange changes. | Layer | ||
![]() | Fires after layer properties for the layer are successfully populated. | Layer | ||
![]() | Fires if the layer is unable to load. | Layer | ||
![]() | Fires when the layer has finished updating its content. | Layer | ||
![]() | Fires when the layer begins to update its content. | Layer | ||
| capabilities | property |
capabilities:Array [read-only] Capabilities of the map service, possible array values are Map, Query, and Data.
This property can be used as the source for data binding.
public function get capabilities():Array| copyright | property |
copyright:String [read-only] Map copyright as defined by the map service.
This property can be used as the source for data binding.
public function get copyright():String| description | property |
description:String [read-only] Map description as defined by the map service.
This property can be used as the source for data binding.
public function get description():String| fullExtent | property |
fullExtent:Extent [read-only] [override] Full extent as defined by the map service.
This property can be used as the source for data binding.
public function get fullExtent():Extent| initialExtent | property |
initialExtent:Extent [read-only] [override] Initial extent as defined by the map service. Used for the map if it is the first layer in the map and map doesn't have an extent specified.
This property can be used as the source for data binding.
public function get initialExtent():Extent| layerInfos | property |
layerInfos:Array [read-only] The available layers in the map service and their default visibility.
This property can be used as the source for data binding.
public function get layerInfos():ArraySee also
| layerInfoWindowRenderers | property |
layerInfoWindowRenderers:Array| Since : | ArcGIS API for Flex 2.3 |
Array of LayerInfoWindowRenderers that allow you to define infoWindowRenderers for specific layers [added in version 2.3].
This property can be used as the source for data binding.
public function get layerInfoWindowRenderers():Array public function set layerInfoWindowRenderers(value:Array):voidSee also
| proxyURL | property |
proxyURL:StringThe URL to proxy the request through.
This property can be used as the source for data binding.
public function get proxyURL():String public function set proxyURL(value:String):void| requestTimeout | property |
requestTimeout:intThe request timeout in seconds. A value less than or equal to zero prevents request timeout.
The default value is -1.
This property can be used as the source for data binding.
public function get requestTimeout():int public function set requestTimeout(value:int):void| serviceDescription | property |
serviceDescription:String [read-only] Map service description as defined by the map service.
This property can be used as the source for data binding.
public function get serviceDescription():String| spatialReference | property |
spatialReference:SpatialReference [read-only] [override] The spatial reference of the map service.
This property can be used as the source for data binding.
public function get spatialReference():SpatialReference| tableInfos | property |
tableInfos:Array [read-only] The stand-alone tables in the map service [added in version 2.0]. The TableInfo contains the id and name of each of these table.
This property can be used as the source for data binding.
public function get tableInfos():ArraySee also
| tileInfo | property |
tileInfo:TileInfo [read-only] [override] Contains information about the tiling scheme.
This property can be used as the source for data binding.
public function get tileInfo():TileInfo| tileServers | property |
tileServers:ArrayList of URL endpoints to load from. This improves performance by allowing more simultaneous requests.
Note: you can specify a single tile Server to override the URL used for tile requests.
This property can be used as the source for data binding.
public function get tileServers():Array public function set tileServers(value:Array):voidSee also
<esri:ArcGISTiledMapServiceLayer url="http://mymaindomain/ArcGIS/rest/services/World_TilesOnDemand/MapServer">
<esri:tileServers>
<fx:String>http://tiles1.example.com/ArcGIS/rest/services/World_TilesOnDemand/MapServer</fx:String>
<fx:String>http://tiles2.example.com/ArcGIS/rest/services/World_TilesOnDemand/MapServer</fx:String>
</esri:tileServers>
</esri:ArcGISTiledMapServiceLayer>| timeInfo | property |
timeInfo:TimeInfo [read-only] Only timeExtent and timeReference properties may be available [added in version 2.0].
This property can be used as the source for data binding.
public function get timeInfo():TimeInfo| token | property |
token:StringToken for accessing a secure tiled ArcGIS service.
This property can be used as the source for data binding.
public function get token():String public function set token(value:String):void
<esri:ArcGISTiledMapServiceLayer
url="http://premium.arcgisonline.com/Server/rest/services/World_Imagery/MapServer?token=XXX-t0RZv0ViIuOqM80EKzQ2-0B3LYIgfPMbp4AMDsV5TDF1I14IkhD7JWx5jgzbwFIfxhXOniZCRZZZYYYXXX.."
token="XXX-t0RZv0ViIuOqM80EKzQ2-0B3LYIgfPMbp4AMDsV5TDF1I14IkhD7JWx5jgzbwFIfxhXOniZCRZZZYYYXXX.." />
</esri:Map>| units | property |
units:String [read-only] [override] The units of the layer. Subclasses should override this method as a best practice in case a subclassed layer is added to a map which has different "units".
This property can be used as the source for data binding.
public function get units():StringSee also
| url | property |
url:StringURL endpoint of a service. To obtain the URL, use ArcGIS Services Directory. An example URL for the Street Map service on ArcGIS Online is http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer.
This property can be used as the source for data binding.
public function get url():String public function set url(value:String):void| version | property |
version:Number [read-only] | Since : | ArcGIS API for Flex 2.2 |
The version of ArcGIS Server where the map service is published to, for example, 9.3, 9.31, 10, 10.01 or 10.1.
This property can be used as the source for data binding.
public function get version():Number| visibleLayers | property |
visibleLayers:ArrayCollection [read-only] The visible layers as defined by the default visibility in LayerInfo.
This property can be used as the source for data binding.
public function get visibleLayers():ArrayCollectionSee also
| ArcGISTiledMapServiceLayer | () | Constructor |
public function ArcGISTiledMapServiceLayer(url:String = null, proxyURL:String = null, token:String = null)Creates a new ArcGISTiledMapServiceLayer object.
Parametersurl:String (default = null) — URL to the ArcGIS Server REST resource that represents a cached map service.
| |
proxyURL:String (default = null) — The URL to proxy the request through.
| |
token:String (default = null) — Token for accessing a secure tiled ArcGIS service.
|
| getAllDetails | () | method |
public function getAllDetails(responder:IResponder = null):AsyncToken| Since : | ArcGIS API for Flex 2.0 |
Gets the detailed information for all the ArcGIS layers and tables in the service. On completion, an AllDetails object is returned. This requires ArcGIS Server 10.0 or above.
Parameters
responder:IResponder (default = null) — IResponder to pass the AllDetails result to.
|
AsyncToken |
See also
| getDetails | () | method |
public function getDetails(layerOrTableId:Number, responder:IResponder = null):AsyncTokenGets the detailed information for an ArcGIS layer or table. On completion, a LayerDetails is returned if layerOrTableId is a layer, or a TableDetails is returned if layerOrTableId is a table.
Parameters
layerOrTableId:Number — Layer ID or Table ID assigned by ArcGIS Server for a layer or table.
| |
responder:IResponder (default = null) — IResponder to pass the LayerDetails or TableDetails result to.
|
AsyncToken |
See also
| getLegendInfos | () | method |
public function getLegendInfos(responder:IResponder = null):AsyncTokenGets legend infos.
Parameters
responder:IResponder (default = null) — The responder to call on result or fault.
The result function will be given an Array of LayerLegendInfo instances.
|
AsyncToken —
|
See also
| fault | Event |
mx.rpc.events.FaultEventmx.rpc.events.FaultEvent.FAULTDispatched when getAllDetails or getDetails operations fails.
| getAllDetailsComplete | Event |
com.esri.ags.events.DetailsEventcom.esri.ags.events.DetailsEvent.GET_ALL_DETAILS_COMPLETEDispatched when an getAllDetails operation successfully completes.
Defines the value of thetype property of an getAllDetailsComplete event object.
| getDetailsComplete | Event |
com.esri.ags.events.DetailsEventcom.esri.ags.events.DetailsEvent.GET_DETAILS_COMPLETEDispatched when an getDetails operation successfully completes.
Defines the value of thetype property of an getDetailsComplete event object.
<esri:Map>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
</esri:Map>