A read only TileCache layer. Used to requests tiles cached by TileCache in a web accessible cache. This means that you have to pre-populate your cache before this layer can be used. It is meant only to read tiles created by TileCache, and not to make calls to TileCache for tile creation. Create a new instance with the OpenLayers.Layer.TileCache constructor.
OpenLayers. Layer. TileCache | A read only TileCache layer. |
Properties | |
isBaseLayer | {Boolean} Treat this layer as a base layer. |
tileOrigin | {OpenLayers.LonLat} Location of the tile lattice origin. |
format | {String} Mime type of the images returned. |
Constructor | |
OpenLayers. Layer. TileCache | Create a new read only TileCache layer. |
Functions | |
clone | |
getURL | |
addTile | Create a tile, initialize it, and add it to the layer div. |
setMap | When the layer is added to a map, then we can fetch our origin (if we don’t have one.) |
{OpenLayers.LonLat} Location of the tile lattice origin. Default is bottom left of the maxExtent.
Create a new read only TileCache layer.
name | {String} Name of the layer displayed in the interface |
url | {String} Location of the web accessible cache (not the location of your tilecache script!) |
layername | {String} Layer name as defined in the TileCache configuration |
options | {Object} Optional object with properties to be set on the layer. Note that you should speficy your resolutions to match your TileCache configuration. This can be done by setting the resolutions array directly (here or on the map), by setting maxResolution and numZoomLevels, or by using scale based properties. |
clone: function ( obj )
obj | {Object} |
{OpenLayers.Layer.TileCache} An exact clone of this OpenLayers.Layer.TileCache
getURL: function( bounds )
bounds | {OpenLayers.Bounds} |
{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters.
addTile:function( bounds, position )
Create a tile, initialize it, and add it to the layer div.
bounds | {OpenLayers.Bounds} |
position | {OpenLayers.Pixel} |
{OpenLayers.Tile.Image} The added OpenLayers.Tile.Image
setMap: function( map )
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
map | {OpenLayers.Map} |
clone: function ( obj )
getURL: function( bounds )
Create a tile, initialize it, and add it to the layer div.
addTile:function( bounds, position )
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
setMap: function( map )