HSLayers.OWS.WMS (class)

HSLayers.OWS.WMS

class HSLayers.OWS.WMS(config)

WMS parser is panel, with WMS capabilities

param Object config:
 

Properties

HSLayers.OWS.WMS.exceptions
Type :String[] (static)

HSLayers.OWS.WMS

List of avaiable WMS exception types

HSLayers.OWS.WMS.getMapUrl
Type :String (static)

HSLayers.OWS.WMS

URL of the GetMap request

HSLayers.OWS.WMS.layerStylesPrefix
Type :String (static)

HSLayers.OWS.WMS

Prefix for ids and css styles used by this manager

HSLayers.OWS.WMS.preferedImageFormats

HSLayers.OWS.WMS

ImagImage formats

HSLayers.OWS.WMS.preferedQueryFormats

HSLayers.OWS.WMS

Query formats

HSLayers.OWS.WMS.service
Type :String (static)

HSLayers.OWS.WMS

Service type

HSLayers.OWS.WMS.serviceIcon
Type :String (static)

HSLayers.OWS.WMS

Icon to be displayed in services tree

HSLayers.OWS.WMS.srss
Type :String[] (static)

HSLayers.OWS.WMS

List of avaiable WMS srss

HSLayers.OWS.WMS.title
Type :String title: “WMS”, (static)

HSLayers.OWS.WMS

Service type

HSLayers.OWS.WMS.useTiles
Type :Boolean (static)

HSLayers.OWS.WMS

Use tiles checked

Methods

...)

checked layers) and add new layers to map.

HSLayers.OWS.WMS.parseCapabilities(text)

Parse GetCapabilities XML document

Arguments:
  • text (XMLDOM) – input response as responseText
HSLayers.OWS.WMS.fillMetadataPanel()

fill metadata panel

HSLayers.OWS.WMS.makePropertiesForm()
Format properties form of this service (image format, query format,

...)

HSLayers.OWS.WMS.parseLayerStyle(styleNode, style)

Parse style node and return object with name,title, legend etc. back

Arguments:
  • styleNode (DOMElement) –
  • style (Object) –
HSLayers.OWS.WMS.getServiceIcon()

Return URL with icon for the layer (queryable or not, ...)

Returns:url
Return type:String
HSLayers.OWS.WMS.makeServicesNodes(service, node)

Append tree of layers to parent node

Arguments:
  • service (Object) – layer, with list of layers (services)

:param <a href=”http://www.extjs.com/deploy/dev/docs/?class=Ext.tree.TreeNode“>Ext.tree.TreeNode</a> node:

to which the tree will be appended
HSLayers.OWS.WMS.onToMapClicked()
Clicked on the button “To map”. Create new layers (according to

checked layers) and add new layers to map.

HSLayers.OWS.WMS.getSelectedStyle(name)

Get selected style for checked layer

Arguments:
  • name (String) – layer name
Returns:

selected style name

Return type:

String

HSLayers.OWS.WMS.findCheckedLayers()

Find checked layers

Returns:[{Object}] list of capabilities layer object
HSLayers.OWS.WMS.addLayers({Object}, layerName, imageFormat, queryFormat, singleTile, tileSize, crs)

Everything all right, add selected layers to map

Arguments:
  • {Object}

    layer list of capabilities layer object

    Optional

  • layerName (String) – layer name in the map
  • imageFormat (String) –
  • queryFormat (String) –
  • singleTile (Boolean) –
  • tileSize (OpenLayers.Size) –
  • crs (OpenLayers.Projection) – crs of the layer
HSLayers.OWS.WMS.addLayer(layer, layerName, folder, imageFormat, queryFormat, singleTile, tileSize, crs)

add selected layer to map

Arguments:
  • layer (Object) – capabilities layer object
  • layerName (String) – layer name in the map
  • folder (String) – name
  • imageFormat (String) –
  • queryFormat (String) –
  • singleTile (Boolean) –
  • tileSize (OpenLayers.Size) –
  • crs (OpenLayers.Projection) – of the layer
HSLayers.OWS.WMS.getPreferedFormat({String}, {String})

get prefered or fist found from formats

Arguments:
  • {String}

    formats

    Optional

  • {String}

    preferedFormats

    Optional

Main Menu


Table Of Contents

Previous topic

HSLayers.OWS.WFS (class)

Next topic

HSLayers.OWSPanel (class)

This Page