OpenLayers. Layer. TileCache

A read only TileCache layer.  Used to requests tiles cached by TileCache in a web accessible cache.  Create a new instance with the OpenLayers.Layer.TileCache constructor.

Inherits from

Summary
A read only TileCache layer.
{Boolean} Treat this layer as a base layer.
{OpenLayers.LonLat} Location of the tile lattice origin.
{String} Mime type of the images returned.
Create a new read only TileCache layer.
Create a tile, initialize it, and add it to the layer div.
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)

Properties

isBaseLayer

{Boolean} Treat this layer as a base layer.  Default is true.

tileOrigin

{OpenLayers.LonLat} Location of the tile lattice origin.  Default is bottom left of the maxExtent.

format

{String} Mime type of the images returned.  Default is image/png.

Constructor

OpenLayers. Layer. TileCache

Create a new read only TileCache layer.

Parameters

name{String} Name of the layer displayed in the interface
url{String} Location of the web accessible cache
layername{String} Layer name as defined in the TileCache configuration
options{Object} Hashtable of extra options to tag onto the layer

Functions

clone

clone: function (obj)
obj{Object}

Returns

{OpenLayers.Layer.TileCache} An exact clone of this OpenLayers.Layer.TileCache

getURL

getURL: function(bounds)

Parameters

bounds{OpenLayers.Bounds}

Returns

{String} A string with the layer’s url and parameters and also the passed-in bounds and appropriate tile size specified as parameters.

addTile

addTile:function(bounds,
position)

Create a tile, initialize it, and add it to the layer div.

Parameters

bounds{OpenLayers.Bounds}

Returns

{OpenLayers.Tile.Image} The added OpenLayers.Tile.Image

setMap

setMap: function(map)

When the layer is added to a map, then we can fetch our origin (if we don’t have one.)

Parameters

map{OpenLayers.Map}
This class represents a longitude and latitude pair
clone: function (obj)
getURL: function(bounds)
addTile:function(bounds,
position)
Create a tile, initialize it, and add it to the layer div.
setMap: function(map)
When the layer is added to a map, then we can fetch our origin (if we don’t have one.)
Create a new read only TileCache layer.
Base class for layers that use a lattice of tiles.
Instances of this class represent bounding boxes.
Instances of OpenLayers.Tile.Image are used to manage the image tiles used by various layers.
Instances of OpenLayers.Map are interactive maps embedded in a web page.