OpenSpace.Layer.WMS

Display data from the OpenSpace WMS.

Inherits from

  • <OpenLayers.Layer.WMS>
Summary
OpenSpace.Layer.WMSDisplay data from the OpenSpace WMS.
Variables
tileSize{<OpenLayers.Size>} Size of the map tile.
Properties
gridProjection{OpenSpace.GridProjection} Transforms from WGS84 to British National Grid.
Constructor
OpenSpace.Layer.WMSCreate a new OpenSpace WMS layer object
Functions
destroyDestroy this layer.
cloneCreate a clone of this layer
moveToMove the tile in this OpenSpace WMS layer.
getMapPointFromViewPortPx
getViewPortPxFromLonLatTranslate a point on the map into a corresponding pixel point in the viewport.

Variables

tileSize

tileSize: null

{<OpenLayers.Size>} Size of the map tile.

Properties

gridProjection

{OpenSpace.GridProjection} Transforms from WGS84 to British National Grid.

Constructor

OpenSpace.Layer.WMS

Create a new OpenSpace WMS layer object

Example

var wms = new OpenSpace.Layer.WMS();

Parameters

Functions

destroy

destroy: function()

Destroy this layer.

clone

clone: function (obj)

Create a clone of this layer

Returns

{<OpenLayers.Layer.WMS>} An exact clone of this layer

moveTo

moveTo:function(bounds,
zoomChanged,
dragging)

Move the tile in this OpenSpace WMS layer.

Parameters

bound{<OpenLayers.Bounds>}
zoomChanged{Boolean} Tells when zoom has changed, as layers have to do some init work in that case.
dragging{Boolean}

getMapPointFromViewPortPx

getMapPointFromViewPortPx: function (viewPortPx)

Parameters

viewPortPx{<OpenLayers.Pixel>}

Returns

{<OpenSpace.Mappoint>} An OpenSpace.MapPoint which is the passed-in view port <OpenLayers.Pixel>, translated into British National Grid by the layer.

getViewPortPxFromLonLat

getViewPortPxFromLonLat: function (lonlat)

Translate a point on the map into a corresponding pixel point in the viewport.

Parameters

lonlat{<OpenLayers.LonLat>} Point on map.
tileSize: null
{OpenLayers.Size} Size of the map tile.
Enables transformation from WGS84 to British National Grid and from British National Grid to WGS84.
destroy: function()
Destroy this layer.
clone: function (obj)
Create a clone of this layer
moveTo:function(bounds,
zoomChanged,
dragging)
Move the tile in this OpenSpace WMS layer.
getMapPointFromViewPortPx: function (viewPortPx)
getViewPortPxFromLonLat: function (lonlat)
Translate a point on the map into a corresponding pixel point in the viewport.
Close