| Package | com.esri.ags.layers |
| Class | public class TiledMapServiceLayer |
| Inheritance | TiledMapServiceLayer Layer mx.core.UIComponent |
| Subclasses | ArcGISTiledMapServiceLayer, OpenStreetMapLayer, VETiledLayer, WMTSLayer |
See also
| Property | Defined By | ||
|---|---|---|---|
| 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]
The full extent of the layer. | TiledMapServiceLayer | ||
![]() | initialExtent : Extent [read-only]
Initial extent of the layer. | Layer | |
![]() | 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 | |
![]() | 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 | |
![]() | spatialReference : SpatialReference [read-only]
The spatial reference of the layer. | Layer | |
| tileInfo : TileInfo [read-only]
Contains information about the tiling scheme. | TiledMapServiceLayer | ||
![]() | units : String [read-only]
The units of the layer. | Layer | |
| Method | Defined By | ||
|---|---|---|---|
Creates a new TiledMapServiceLayer object. | TiledMapServiceLayer | ||
![]() | refresh():void
Causes the layer to redraw or reload its content. | Layer | |
| Method | Defined By | ||
|---|---|---|---|
![]() | addMapListeners():void
Adds listeners for ExtentEvent.EXTENT_CHANGE, ZoomEvent.ZOOM_START,
ZoomEvent.ZOOM_UPDATE and ZoomEvent.ZOOM_END. | Layer | |
![]() | extentChangeHandler(event:ExtentEvent):void
When an EXTENT_CHANGE event occurs, this calls invalidateLayer();
| Layer | |
getTileURL(level:Number, row:Number, col:Number):URLRequest
Subclasses must override this method to cause tiles to be loaded from their own endpoints. | TiledMapServiceLayer | ||
![]() | hideHandler(event:FlexEvent):void
When the layer is hidden (visible is set to false), this calls removeMapListeners(). | Layer | |
![]() | invalidateLayer():void
Subclasses should call this whenever they would like to have updateLayer() called on them. | Layer | |
![]() | removeAllChildren():void
Removes all the layers children. | Layer | |
![]() | removeMapListeners():void
Removes the four event listeners added by addMapListeners();
| Layer | |
![]() | setLoaded(value:Boolean):void
Subclasses must call this when they've loaded all their properties and are ready to load
their content. | Layer | |
![]() | showHandler(event:FlexEvent):void
When the layer is shown (visible is set to true), this calls addMapListeners() and invalidateLayer(). | Layer | |
![]() | toScreenX(mapX:Number):Number
Converts the x-coordinate of map point to a screen point. | Layer | |
![]() | toScreenY(mapY:Number):Number
Converts the y-coordinate of map point to a screen point. | Layer | |
![]() | updateLayer():void
Subclasses must override this method. | Layer | |
![]() | zoomEndHandler(event:ZoomEvent):void
Finishes the zoom animation. | Layer | |
![]() | zoomStartHandler(event:ZoomEvent):void
Prepares the zoom animation by taking a bitmap of the layer. | Layer | |
![]() | zoomUpdateHandler(event:ZoomEvent):void
Redraws the bitmap of the layer. | Layer | |
| displayLevels | property |
displayLevels:ArrayLevels to display in layer, based on LOD.level. If null, all levels are displayed.
The default value is null.
public function get displayLevels():Array public function set displayLevels(value:Array):void| fadeInFrameCount | property |
fadeInFrameCount:uintThe number of frames it will take for the tiles to fade in. They will only fade in if this is greater than one.
Note: the fadeInFrameCount property was added in version 1.1 of the ArcGIS API for Flex.
The default value is 4 frames.
This property can be used as the source for data binding.
public function get fadeInFrameCount():uint public function set fadeInFrameCount(value:uint):void| fullExtent | property |
fullExtent:Extent [read-only] The full extent of the layer. Subclasses must override this method.
The default value is null.
This property can be used as the source for data binding.
public function get fullExtent():Extent| tileInfo | property |
tileInfo:TileInfo [read-only] Contains information about the tiling scheme. Subclasses must override this method.
The default value is null.
This property can be used as the source for data binding.
public function get tileInfo():TileInfo| TiledMapServiceLayer | () | Constructor |
public function TiledMapServiceLayer()Creates a new TiledMapServiceLayer object.
| getTileURL | () | method |
protected function getTileURL(level:Number, row:Number, col:Number):URLRequest
Subclasses must override this method to cause tiles to be loaded from their own endpoints.
If the returned URL request scheme is set "data", then the image is loaded from the URL request data property as a ByteArray.
var myByteArray:ByteArray = new ByteArray();
// Populate myByteArray with image jpg/png formatted content.
var url:String = "data://L" + level + "R" + row + "C" + col;
var urlRequest:URLRequest = new URLRequest(url);
urlRequest.data = myByteArray;
return urlRequest;
Parameters
level:Number — The tile level.
| |
row:Number — The tile row.
| |
col:Number — The tile column.
|
URLRequest — The URLRequest to be used to load the tile.
|
See also