OpenLayers. Layer. KaMap

Inherits from

Summary
{Boolean} KaMap Layer is always a base layer
{?}
{Float}
{Object} parameters set by default.
Returns The tile bounds for a layer given a pixel location.

Properties

isBaseLayer

{Boolean} KaMap Layer is always a base layer

units

{?}

resolution

{Float}

Constants

DEFAULT_PARAMS

{Object} parameters set by default.  The default parameters set the format via the ‘i’ parameter to ‘jpeg’.

Constructor

OpenLayers. Layer. KaMap

Parameters

name{String}
url{String}
params{Object} Parameters to be sent to the HTTP server in the query string for the tile.  The format can be set via the ‘i’ parameter (defaults to jpg) , and the map should be set via the ‘map’ parameter.  It has been reported that ka-Map may behave inconsistently if your format parameter does not match the format parameter configured in your config.php.  (See ticket #327 for more information.)
options{Object} Additional options for the layer.  Any of the APIProperties listed on this layer, and any layer types it extends, can be overridden through the options parameter.

Functions

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)

Parameters

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

Returns

{OpenLayers.Tile.Image}

initGriddedTiles

initGriddedTiles:function(bounds)

clone

clone: function (obj)

Parameters

obj{Object}

Returns

{<OpenLayers.Layer.Kamap>} An exact clone of this OpenLayers.Layer.KaMap

getTileBounds

getTileBounds: function(viewPortPx)

Returns The tile bounds for a layer given a pixel location.

Parameters

viewPortPx{OpenLayers.Pixel} The location in the viewport.

Returns

{OpenLayers.Bounds} Bounds of the tile at the given pixel location.

getURL: function (bounds)
addTile:function(bounds,
position)
initGriddedTiles:function(bounds)
clone: function (obj)
getTileBounds: function(viewPortPx)
Returns The tile bounds for a layer given a pixel location.
Base class for layers that use a lattice of tiles.
Instances of this class represent bounding boxes.
This class represents a screen coordinate, in x and y coordinates
Instances of OpenLayers.Tile.Image are used to manage the image tiles used by various layers.