Class: CadcorpTileService

CadcorpTileService

new CadcorpTileService(name, url, options)

An Open Layers layer that integrates with a GeognoSIS Tile Service. Extends OpenLayers.Layer.TMS
Parameters:
Name Type Description
name string The name for this layer
url string The base url to GeognoSIS
options Object The options used to configure this layer, any valid option for OpenLayers.Layer.TMS can be supplied

Members

(constant) CLASS_NAME :string

The name of this class
Type:
  • string

Factor

Properties:
Name Type Description
f number The multiplier applied to the initial values every (i)ncrement

Format

Properties:
Name Type Description
format string The image format e.g. image/png

Increment

Properties:
Name Type Description
i number Combined with the factor and the initial size defines the levels.

Layer

Properties:
Name Type Description
layer string The layer exposed by the tile service to display

Origin X

Properties:
Name Type Description
ox number Defines origin x, in crs units, for level 0

Origin Y

Properties:
Name Type Description
oy number Defines origin y, in crs units, for level 0

serviceVersion

Properties:
Name Type Description
serviceVersion String The version of this tile service

World at level 0

Properties:
Name Type Description
w0 number Defines the resolution, in crs units, for level 0

Methods

calculateGridLayout(bounds, origin, resolution) → {Object}

Generate parameters for the grid layout.
Parameters:
Name Type Description
bounds OpenLayers.Bound | Object OpenLayers.Bounds or an object with a 'left' and 'top' properties.
origin OpenLayers.LonLat | Object OpenLayers.LonLat or an object with a 'lon' and 'lat' properties.
resolution number
Returns:
Object containing properties tilelon, tilelat, startcol, startrow
Type
Object

clone(obj) → {OpenLayers.Layer.CadcorpTileService}

Create a complete copy of this layer.
Parameters:
Name Type Description
obj Object Should only be provided by subclasses that call this method.
Returns:
An exact clone of this OpenLayers.Layer.CadcorpTileService
Type
OpenLayers.Layer.CadcorpTileService

getURL(bounds) → {String}

Parameters:
Name Type Description
bounds OpenLayers.Bound
Returns:
A string with the layer's url and parameters and also the passed-in bounds and appropriate tile size specified as parameters
Type
String

initGriddedTiles(bounds)

Parameters:
Name Type Description
bounds OpenLayers.Bounds