Packageorg.openscales.core.layer.osm
Classpublic class CycleMap
InheritanceCycleMap Inheritance OSM Inheritance TMS Inheritance Grid Inheritance HTTPRequest Inheritance Layer Inheritance flash.display.Sprite

CycleMap OpenStreetMap layer More informations on http://www.gravitystorm.co.uk/shine/cycle-info/



Public Properties
 PropertyDefined by
 InheritedaltUrls : Array
HTTPRequest
 Inheritedbuffer : 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
 InheritedDEFAULT_MAXEXTENT : Bounds
[static]
Layer
 InheritedDEFAULT_PROJECTION : ProjProjection
[static]
Layer
 Inheriteddisplayed : Boolean
Layer
 Inheritedextent : Bounds
A Bounds object which represents the lon/lat bounds of the current viewPort.
Layer
 Inheritedgrid : Array
Grid
 InheritedimageSize : Size
Grid
 InheritedinRange : Boolean
Layer
 InheritedisBaseLayer : Boolean
Whether or not the layer is a base layer.
Layer
 InheritedisFixed : Boolean
Whether or not the layer is a fixed layer.
Layer
 InheritedloadComplete : Boolean
Whether or not the layer is loading data
Layer
 Inheritedmap : Map
TMS
 InheritedmaxExtent : Bounds
The center of these bounds will not stray outside of the viewport extent during panning.
Layer
 InheritedmaxResolution : Number
Layer
 InheritedmaxZoomLevel : Number
Layer
 InheritedminResolution : Number
Layer
 InheritedminZoomLevel : Number
Layer
 InheritednumLoadingTiles : int
Grid
 InheritednumZoomLevels : Number
Number of zoom levels
Layer
 Inheritedparams : IHttpParams
HTTPRequest
 Inheritedprojection : ProjProjection
Override the default projection.
Layer
 Inheritedproxy : String
Proxy (usually a PHP, Python, or Java script) used to request remote servers like WFS servers in order to allow crossdomain requests.
Layer
 Inheritedresolutions : Array
A list of map resolutions (map units per pixel) in descending order.
Layer
 Inheritedsecurity : ISecurity
Layer
 InheritedsingleTile : Boolean
Grid
 InheritedtileHeight : Number
Grid
 InheritedtileWidth : Number
Grid
 Inheritedurl : String
HTTPRequest
 InheritedURL_HASH_FACTOR : Number
HTTPRequest
 Inheritedvisible : Boolean
Layer
 Inheritedzindex : int
Layer
Protected Properties
 PropertyDefined by
 InheritedCACHE_SIZE : int = 64
Grid
 Inherited_imageSize : Size = null
Layer
 Inheritedloading : Boolean
Used to set loading status of layer
Layer
Public Methods
 MethodDefined by
  
CycleMap(name:String, isBaseLayer:Boolean = false, visible:Boolean = true, projection:String = null, proxy:String = null)
CycleMap
 Inherited
addTile(bounds:Bounds, position:Pixel):Tile
TMS
 Inherited
addTileCache(url:String, loader:Loader):void
Methodd to cache a tile
Grid
 Inherited
clear():void
Go through and remove all tiles from the grid, calling destroy() on each of them to kill circular references
Grid
 Inherited
destroy(newBaseLayer:Boolean = true):void
Grid
 Inherited
generateResolutions(numZoomLevels:uint, nominalResolution:Number):void
Layer
 Inherited
Return a LonLat which is the passed-in map Pixel, translated into lon/lat by the layer.
Layer
 Inherited
Return a Pixel which is the passed-in LonLat,translated into map pixels.
Layer
 Inherited
getTileBounds(viewPortPx:Pixel):Bounds
Returns The tile bounds for a layer given a pixel location.
Grid
 Inherited
getTileCache(url:String):Loader
Method to get a cached tile by its url
Grid
 Inherited
Return the bounds of the tile grid.
Grid
 Inherited
getURL(bounds:Bounds):String
OSM
 Inherited
getUrls():Array
HTTPRequest
 Inherited
getZoomForExtent(extent:Bounds):Number
Layer
 Inherited
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
 Inherited
initGriddedTiles(bounds:Bounds):void
Grid
 Inherited
initSingleTile(bounds:Bounds):void
Initialization singleTile
Grid
 Inherited
moveGriddedTiles(bounds:Bounds):void
Grid
 Inherited
Layer
 Inherited
Layer
 Inherited
Grid
 Inherited
Layer
 Inherited
redraw(fullRedraw:Boolean = true):void
Grid
 Inherited
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
 Inherited
Grid
 Inherited
reset():void
Reset layer data
Layer
 Inherited
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
Protected Methods
 MethodDefined by
 Inherited
draw():void
Reset layer data
Layer
 Inherited
Starts at the top right corner of the grid and proceeds in a spiral towards the center, adding tiles one at a time to the beginning of a queue.
Grid
Public Constants
 ConstantDefined by
 InheritedDEFAULT_MAX_RESOLUTION : Number = 156543.0339
[static]
OSM
 InheritedDEFAULT_NOMINAL_RESOLUTION : Number = 1.40625
[static]
Layer
 InheritedDEFAULT_NUM_ZOOM_LEVELS : uint = 16
[static]
Layer
 InheritedDEFAULT_SRS_CODE : String = "EPSG:4326"
[static]
Layer
 InheritedMISSING_TILE_URL : String = "http://openstreetmap.org/openlayers/img/404.png"
[static]
OSM
 InheritedRESOLUTION_TOLERANCE : Number = 0.000001
[static]
Layer
Constructor detail
CycleMap()constructor
public function CycleMap(name:String, isBaseLayer:Boolean = false, visible:Boolean = true, projection:String = null, proxy:String = null)Parameters
name:String
 
isBaseLayer:Boolean (default = false)
 
visible:Boolean (default = true)
 
projection:String (default = null)
 
proxy:String (default = null)