OpenLayers. Format. WMSCapabilities.v1

Abstract class not to be instantiated directly.  Creates the common parts for both WMS 1.1.X and WMS 1.3.X.

Inherits from

Summary
OpenLayers. Format. WMSCapabilities.v1Abstract class not to be instantiated directly.
Properties
namespaces{Object} Mapping of namespace aliases to namespace URIs.
defaultPrefix
Constructor
OpenLayers. Format. WMSCapabilities.v1Create an instance of one of the subclasses.
Functions
readRead capabilities data from a string, and return a list of layers.
postProcessLayersPost process the layers, so that the nested layer structure is converted to a flat layer list with only named layers.
processLayerRecursive submethod of postProcessLayers.
Properties
readersContains public functions, grouped by namespace prefix, that will be applied when a namespaced node is found matching the function name.

Properties

namespaces

{Object} Mapping of namespace aliases to namespace URIs.

defaultPrefix

Constructor

OpenLayers. Format. WMSCapabilities.v1

Create an instance of one of the subclasses.

Parameters

options{Object} An optional object whose properties will be set on this instance.

Functions

read

read: function(data)

Read capabilities data from a string, and return a list of layers.

Parameters

data{String} or {DOMElement} data to read/parse.

Returns

{Array} List of named layers.

postProcessLayers

postProcessLayers: function(capabilities)

Post process the layers, so that the nested layer structure is converted to a flat layer list with only named layers.

Parameters

capabilities{Object} The object (structure) returned by the parser with all the info from the GetCapabilities response.

processLayer

processLayer: function(capability,
layer,
parentLayer)

Recursive submethod of postProcessLayers.  This function will among others deal with property inheritance.

Parameters

capability{Object} The capability part of the capabilities object
layer{Object} The layer that needs processing
parentLayer{Object} The parent layer of the respective layer

Properties

readers

Contains public functions, grouped by namespace prefix, that will be applied when a namespaced node is found matching the function name.  The function will be applied in the scope of this parser with two arguments: the node being read and a context object passed from the parent.

read: function(data)
Read capabilities data from a string, and return a list of layers.
postProcessLayers: function(capabilities)
Post process the layers, so that the nested layer structure is converted to a flat layer list with only named layers.
processLayer: function(capability,
layer,
parentLayer)
Recursive submethod of postProcessLayers.
Read and write XML.
Close