HSLayers.Layer.WMS (class)

HSLayers.Layer.WMS

class HSLayers.Layer.WMS()

WMS layer warped on the server to target coordinate system.

Example usage:

var transWms = new HSLayers.Layer.WMS("Name","http://foo/bar/",
    wmsParams,
    {srs: "epsg:4326", // target SRS
    });

Properties

be used for query request or not (usually not)

HSLayers.Layer.WMS.CLASS_NAME
Type :String (static)

HSLayers.Layer.WMS

Class name property

HSLayers.Layer.WMS.forQuery

HSLayers.Layer.WMS

Indicates, if following getFullRequestString request is intended to be used for query request or not (usually not)

Default Value:
false
HSLayers.Layer.WMS.proxy

HSLayers.Layer.WMS

URL of the warper script

Default Value:
/cgi-bin/warper.py?hsurl=
HSLayers.Layer.WMS.serviceType
Type :String (static)

HSLayers.Layer.WMS

serviceType

HSLayers.Layer.WMS.singleTile
Type :Boolean (static)

HSLayers.Layer.WMS

Default Value:
true
HSLayers.Layer.WMS.sourceProjection
Type :String (static)

HSLayers.Layer.WMS

Default Service projection code

Default Value:
“epsg:4326”

Methods

Add the SRS parameter from projection – this is probably more eloquently done via a setProjection() method, but this works for now and always.

HSLayers.Layer.WMS.clone(obj=new)

Create a clone of this layer

:param <a href=”http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Layer/WMS-js.html“>OpenLayers.Layer.WMS</a> obj=new:

OpenLayers.Layer.WSM base for the clone
Returns:
Return type:HSLayers.Layer.WMS
HSLayers.Layer.WMS.getFullRequestString(newParams, altUrl)
Combine the layer’s url with its params and these newParams.

Add the SRS parameter from projection – this is probably more eloquently done via a setProjection() method, but this works for now and always.

param Object newParams:
 
param String altUrl:
 Use this as the url instead of the layer’s url
returns:
rtype:String
HSLayers.Layer.WMS.supportsMapProjection()

does this layer support current map projection? use it!

Returns:projection supported
Return type:Boolean

Main Menu


Table Of Contents

Previous topic

HSLayers.Layer.WFSSensor (class)

Next topic

HSLayers.LayerAttributes (class)

This Page