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>