new WMTS(userParameters, options, vendorOptions)
Name | Type | Description |
---|---|---|
userParameters |
string | Mx.parameters.WMTS |
parameters |
options |
Mx.parameters.LayerOptions |
provided by the user |
vendorOptions |
Object |
vendor options for the base library |
Extends
- M.Layer
Methods
-
equals(){Promise}
facade/js/layer/WMTS.js, line 180 -
Checks if an object is equal to this layer. Two WMTS layers are equal if both of them are WMTS instances and have the same url, name and matrixset.
Returns:
Promise object representing
-
getCapabilities(){Promise}
facade/js/layer/WMTS.js, line 165 -
Creates a Promise which will be resolved when the GetCapabilities request is retrieved by the service and parsed. The capabilities is cached in order to prevent multiple requests
Returns:
Promise object representing Capabilities
-
getGetFeatureInfoUrl(coordinate, zoom, formatInfo){string}
facade/js/layer/WMTS.js, line 204 -
Generates a WMTS getFeatureInfo url that can be used to query the server
Name Type Description coordinate
Array.<Number> Coordinate to query
zoom
Number Zoom level
formatInfo
string Format requested for the response
Returns:
getFeatureInfo url
-
getOptionsGetFeatureInfoUrl()
facade/js/layer/WMTS.js, line 222 -
-
Gets the tile column and tile row of a coordinate
Name Type Description coordinate
Array.<Number> Coordinate to query
zoom
Number Zoom level
Returns:
Array with the tile and col numbers
-
setName(newName)
facade/js/layer/WMTS.js, line 151 -
Sets the name of the layer
Name Type Description newName
String Name
-
setOptionsGetFeatureInfoUrl()
facade/js/layer/WMTS.js, line 213 -
-
setTileLoadFunction(func)
facade/js/layer/WMTS.js, line 127 -
This function sets the tileLoadFunction On the implementation
Name Type Description func
function Function to override
-
setURL(newURL)
facade/js/layer/WMTS.js, line 139 -
Sets the url of the layer
Name Type Description newURL
String URL