Class: WMSCapabilities

WMSCapabilities(xmlDom)

Represents a WMS Capabilities document. This object holds as properties all the fields specified in the given WMS Capabilities document. Most fields can be accessed as properties named according to their document names converted to camel case. For example, "version", "service.title", "service.contactInformation.contactPersonPrimary". The exceptions are online resources, whose property path has been shortened. For example "capability.request.getMap.formats" and "capability.request.getMap.getUrl".

Constructor

new WMSCapabilities(xmlDom)

Constructs an WMS Capabilities instance from an XML DOM.
Parameters:
Name Type Description
xmlDom Object An XML DOM representing the WMS Capabilities document.
Source:
Throws:
If the specified XML DOM is null or undefined.
Type
ArgumentError

Methods

getNamedLayer(name) → {WmsLayerCapabilities}

Searches for a named layer matching the provided name and returns the WmsLayerCapabilities object representing the named layer.
Parameters:
Name Type Description
name String the layer name to find
Source:
Throws:
If the specified name is null or empty.
Type
ArgumentError
Returns:
if a matching named layer is found or null
Type
WmsLayerCapabilities

getNamedLayers() → {Array.<WmsLayerCapabilities>}

Finds all named layers documented in this WMS capabilities document. Will recursively search sub-layers for named layers.
Source:
Returns:
Type
Array.<WmsLayerCapabilities>