| Package | org.openscales.core.layer |
| Class | public class TMS |
| Inheritance | TMS Grid HTTPRequest Layer flash.display.Sprite |
| Subclasses | OSM |
| Property | Defined by | ||
|---|---|---|---|
![]() | altUrls : Array | HTTPRequest | |
![]() | buffer : Number
Used only when in gridded mode, this specifies the number of
extra rows and colums of tiles on each side which will
surround the minimum grid tiles to cover the map.
| Grid | |
![]() | DEFAULT_MAXEXTENT : Bounds
[static]
| Layer | |
![]() | DEFAULT_PROJECTION : ProjProjection [static]
| Layer | |
![]() | displayed : Boolean | Layer | |
![]() | extent : Bounds
A Bounds object which represents the lon/lat bounds of the current viewPort.
| Layer | |
![]() | grid : Array | Grid | |
![]() | imageSize : Size | Grid | |
![]() | inRange : Boolean | Layer | |
![]() | isBaseLayer : Boolean
Whether or not the layer is a base layer.
| Layer | |
![]() | isFixed : Boolean
Whether or not the layer is a fixed layer.
| Layer | |
![]() | loadComplete : Boolean
Whether or not the layer is loading data
| Layer | |
| map : Map
[write-only]
| TMS | ||
![]() | maxExtent : Bounds
The center of these bounds will not stray outside
of the viewport extent during panning.
| Layer | |
![]() | maxResolution : Number | Layer | |
![]() | maxZoomLevel : Number | Layer | |
![]() | minResolution : Number | Layer | |
![]() | minZoomLevel : Number | Layer | |
![]() | numLoadingTiles : int | Grid | |
![]() | numZoomLevels : Number
Number of zoom levels
| Layer | |
![]() | params : IHttpParams | HTTPRequest | |
![]() | projection : ProjProjection
Override the default projection.
| Layer | |
![]() | proxy : String
Proxy (usually a PHP, Python, or Java script) used to request remote servers like
WFS servers in order to allow crossdomain requests.
| Layer | |
![]() | resolutions : Array
A list of map resolutions (map units per pixel) in descending
order.
| Layer | |
![]() | security : ISecurity | Layer | |
![]() | singleTile : Boolean | Grid | |
![]() | tileHeight : Number | Grid | |
![]() | tileWidth : Number | Grid | |
![]() | url : String | HTTPRequest | |
![]() | URL_HASH_FACTOR : Number | HTTPRequest | |
![]() | visible : Boolean | Layer | |
![]() | zindex : int | Layer | |
| Method | Defined by | ||
|---|---|---|---|
|
TMS(name:String, url:String, isBaseLayer:Boolean = false, visible:Boolean = true, projection:String = null, proxy:String = null)
| TMS | ||
| TMS | |||
![]() |
addTileCache(url:String, loader:Loader):void
Methodd to cache a tile
| Grid | |
![]() |
clear():void
Go through and remove all tiles from the grid, calling
destroy() on each of them to kill circular references
| Grid | |
![]() |
destroy(newBaseLayer:Boolean = true):void
| Grid | |
![]() |
generateResolutions(numZoomLevels:uint, nominalResolution:Number):void
| Layer | |
![]() |
Return a LonLat which is the passed-in map Pixel, translated into
lon/lat by the layer.
| Layer | |
![]() |
Return a Pixel which is the passed-in LonLat,translated into map pixels.
| Layer | |
![]() |
Returns The tile bounds for a layer given a pixel location.
| Grid | |
![]() |
getTileCache(url:String):Loader
Method to get a cached tile by its url
| Grid | |
![]() |
Return the bounds of the tile grid.
| Grid | |
| TMS | |||
![]() |
getUrls():Array
| HTTPRequest | |
![]() |
getZoomForExtent(extent:Bounds):Number
| Layer | |
![]() |
getZoomForResolution(resolution:Number):Number
Return The index of the zoomLevel (entry in the resolutions array)
that corresponds to the best fit resolution given the passed in
value and the 'closest' specification.
| Layer | |
![]() |
initGriddedTiles(bounds:Bounds):void
| Grid | |
![]() |
initSingleTile(bounds:Bounds):void
Initialization singleTile
| Grid | |
![]() |
moveGriddedTiles(bounds:Bounds):void
| Grid | |
![]() | Layer | ||
![]() |
onMapResize(e:MapEvent):void
| Layer | |
![]() | Grid | ||
![]() |
onSecurityInitialized(e:SecurityEvent):void
| Layer | |
![]() |
redraw(fullRedraw:Boolean = true):void
| Grid | |
![]() |
removeExcessTiles(rows:int, columns:int):void
When the size of the map or the buffer changes, we may need to
remove some excess rows and columns.
| Grid | |
![]() |
removeTileMonitoringHooks(tile:Tile):void
| Grid | |
![]() |
reset():void
Reset layer data
| Layer | |
![]() |
selectUrl(paramString:String, urls:Array):String
selectUrl() implements the standard floating-point multiplicative
hash function described by Knuth, and hashes the contents of the
given param string into a float between 0 and 1.
| HTTPRequest | |
| map | property |
| TMS | () | constructor |
public function TMS(name:String, url:String, isBaseLayer:Boolean = false, visible:Boolean = true, projection:String = null, proxy:String = null)Parameters
name:String |
|
url:String |
|
isBaseLayer:Boolean (default = false) |
|
visible:Boolean (default = true) |
|
projection:String (default = null) |
|
proxy:String (default = null) |
| addTile | () | method |
public override function addTile(bounds:Bounds, position:Pixel):TileParameters
bounds:Bounds |
|
position:Pixel |
Tile |
| getURL | () | method |