| Package | com.esri.ags.layers |
| Class | public class ArcGISTiledMapServiceLayer |
| Inheritance | ArcGISTiledMapServiceLayer TiledMapServiceLayer Layer mx.core.UIComponent |
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.
<esri:Map>
<esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/arcgis/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
</esri:Map>See also
| Property | Defined by | ||
|---|---|---|---|
| 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
[read-only]
Full extent as defined by the map service.
| ArcGISTiledMapServiceLayer | ||
| initialExtent : Extent
[read-only]
Initial extent as defined by the map service.
| ArcGISTiledMapServiceLayer | ||
![]() | 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 | |
| layerInfos : Array [read-only]
The available layers in the map service and their default visibility.
| ArcGISTiledMapServiceLayer | ||
![]() | 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 | |
![]() | 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 | |
| proxyURL : String
The URL to proxy the request through.
| ArcGISTiledMapServiceLayer | ||
| requestTimeout : Number = -1
The request timeout in seconds.
| ArcGISTiledMapServiceLayer | ||
| serviceDescription : String [read-only]
Map service description as defined by the map service.
| ArcGISTiledMapServiceLayer | ||
| spatialReference : SpatialReference
[read-only]
The spatial reference of the map service.
| ArcGISTiledMapServiceLayer | ||
| tileInfo : TileInfo
[read-only]
Contains information about the tiling scheme.
| ArcGISTiledMapServiceLayer | ||
| tileServers : Array
List of URL endpoints to load from.
| ArcGISTiledMapServiceLayer | ||
| token : String
Token for accessing a secure tiled ArcGIS service.
| ArcGISTiledMapServiceLayer | ||
| units : String [read-only]
The units of the layer.
| ArcGISTiledMapServiceLayer | ||
| url : String
URL endpoint of a service.
| 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 | ||
|
getLayerDetails(layerID:Number, responder:IResponder):void
Gets the detailed layer information for an ArcGIS layer.
| ArcGISTiledMapServiceLayer | ||
![]() |
refresh():void
Causes the layer to redraw or reload its content.
| Layer | |
| 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.
Implementation 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.
Implementation public function get description():String
| fullExtent | property |
fullExtent:Extent [read-only]Full extent as defined by the map service.
This property can be used as the source for data binding.
Implementation public function get fullExtent():Extent
| initialExtent | property |
initialExtent:Extent [read-only]Initial extent as defined by the map service. Used for the map if it's 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.
Implementation 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.
Implementation public function get layerInfos():Array
See also
| proxyURL | property |
proxyURL:String [read-write]The URL to proxy the request through.
This property can be used as the source for data binding.
Implementation public function get proxyURL():String
public function set proxyURL(value:String):void
| requestTimeout | property |
public var requestTimeout:Number = -1The request timeout in seconds. A value less than or equal to zero prevents request timeout.
| 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.
Implementation public function get serviceDescription():String
| spatialReference | property |
spatialReference:SpatialReference [read-only]The spatial reference of the map service.
This property can be used as the source for data binding.
Implementation public function get spatialReference():SpatialReference
| tileInfo | property |
tileInfo:TileInfo [read-only]Contains information about the tiling scheme.
This property can be used as the source for data binding.
Implementation public function get tileInfo():TileInfo
| tileServers | property |
tileServers:Array [read-write]List of URL endpoints to load from. This improves performance by allowing more simultaneous requests.
This property can be used as the source for data binding.
Implementation public function get tileServers():Array
public function set tileServers(value:Array):void
See also
<esri:ArcGISTiledMapServiceLayer url="http://mymaindomain/ArcGIS/rest/services/World_TilesOnDemand/MapServer">
<esri:tileServers>
<mx:String>http://tiles1.example.com/ArcGIS/rest/services/World_TilesOnDemand/MapServer</mx:String>
<mx:String>http://tiles2.example.com/ArcGIS/rest/services/World_TilesOnDemand/MapServer</mx:String>
</esri:tileServers>
</esri:ArcGISTiledMapServiceLayer>| token | property |
public var token:StringToken for accessing a secure tiled ArcGIS service.
<esri:ArcGISTiledMapServiceLayer
url="http://premium.arcgisonline.com/Server/rest/services/I3_Imagery_Prime_World_2D/MapServer?token=XXX-t0RZv0ViIuOqM80EKzQ2-0B3LYIgfPMbp4AMDsV5TDF1I14IkhD7JWx5jgzbwFIfxhXOniZCRZZZYYYXXX.."
token="XXX-t0RZv0ViIuOqM80EKzQ2-0B3LYIgfPMbp4AMDsV5TDF1I14IkhD7JWx5jgzbwFIfxhXOniZCRZZZYYYXXX.." />
</esri:Map>| units | property |
units:String [read-only]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.
Implementation public function get units():String
See also
| url | property |
url:String [read-write]URL 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/ESRI_StreetMap_World_2D/MapServer.
This property can be used as the source for data binding.
Implementation public function get url():String
public function set url(value:String):void
| 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.
Implementation public function get visibleLayers():ArrayCollection
See 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.
|
| getLayerDetails | () | method |
public function getLayerDetails(layerID:Number, responder:IResponder):voidGets the detailed layer information for an ArcGIS layer. On completion, LayerDetails is returned.
ParameterslayerID:Number — Layer ID assigned by ArcGIS Server for a layer.
|
|
responder:IResponder — IResponder to pass the LayerDetails result to.
|
See also
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:esri="http://www.esri.com/2008/ags"
pageTitle="Example - ArcGIS API for Flex connecting to my tiled AGS service"
styleName="plain"
>
<mx:Label text="This is a tiled Map Service from ArcGIS Online." />
<esri:Map>
<esri:ArcGISTiledMapServiceLayer
url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
</esri:Map>
</mx:Application>