OpenLayers.Layer.TMS

Inherits from

Summary
OpenLayers.Layer.TMS
Properties
serviceVersion{String}
isBaseLayer{Boolean}
tileOrigin{OpenLayers.Pixel}
serverResolutions{Array} A list of all resolutions available on the server.
Constructor
OpenLayers.Layer.TMS
Functions
clone
getURL
addTileaddTile creates a tile, initializes it, and adds it to the layer div.
setMapWhen the layer is added to a map, then we can fetch our origin (if we don’t have one.)

Properties

serviceVersion

{String}

isBaseLayer

{Boolean}

tileOrigin

serverResolutions

{Array} A list of all resolutions available on the server.  Only set this property if the map resolutions differs from the server.

Constructor

OpenLayers.Layer.TMS

Parameters

name{String}
url{String}
options{Object} Hashtable of extra options to tag onto the layer

Functions

clone

clone: function (obj)

Parameters

obj{Object}

Returns

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

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)

addTile creates a tile, initializes it, and adds it to the layer div.

Parameters

bounds{OpenLayers.Bounds}
position{OpenLayers.Pixel}

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 screen coordinate, in x and y coordinates
clone: function (obj)
getURL: function (bounds)
addTile:function(bounds,
position)
addTile creates a tile, initializes it, and adds 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.)
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.
Close