Read WMTS Capabilities.
OpenLayers. | Read WMTS Capabilities. |
Properties | |
defaultVersion | {String} Version number to assume if none found. |
yx | {Object} Members in the yx object are used to determine if a CRS URN corresponds to a CRS with y,x axis order. |
Constructor | |
OpenLayers. | Create a new parser for WMTS capabilities. |
Functions | |
read | Read capabilities data from a string, and return information about the service (offering and observedProperty mostly). |
createLayer | Create a WMTS layer given a capabilities object. |
createLayer: function( capabilities, config )
Create a WMTS layer given a capabilities object.
capabilities | {Object} The object returned from a read call to this format. |
config | {Object} Configuration properties for the layer. Defaults for the layer will apply if not provided. |
layer | {String} The layer identifier. |
matrixSet | {String} The matrix set identifier. |
{OpenLayers.Layer.WMTS} A properly configured WMTS layer. Throws an error if an incomplete config is provided. Returns undefined if no layer could be created with the provided config.
Create a WMTS layer given a capabilities object.
createLayer: function( capabilities, config )