Class: WmtsCapabilities

WmtsCapabilities(xmlDom)

Represents an OGC WMTS capabilities document. This object holds as properties all the fields specified in the OGC WMTS capabilities document. Most fields can be accessed as properties named according to their document names converted to camel case. For example, "serviceIdentification" and "contents".

Constructor

new WmtsCapabilities(xmlDom)

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

Methods

(static) sortTileMatrices(tileMatrixSet)

Sorts a tile matrix set by the tile matrices scale denominator.
Parameters:
Name Type Description
tileMatrixSet
Source:

getLayer(identifier) → {WmtsLayerCapabilities}

Retrieve the WmtsLayerCapabilities object for the provided identifier.
Parameters:
Name Type Description
identifier
Source:
Throws:
If the specified identifier is null or undefined.
Type
ArgumentError
Returns:
object for the provided identifier or null if no identifier was found in the WmtsCapabilities object.
Type
WmtsLayerCapabilities

getLayers() → {Array.<WmtsLayerCapabilities>}

Provides all of the layers associated with this WMTS. This method is for convienence and returns the layer array captured in the contents of this WmtsCapabilities object.
Source:
Returns:
Type
Array.<WmtsLayerCapabilities>