A WMTS tile matrix set. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.1 |
Inherits: |
Properties
- description : string
- extent : Envelope
- keywords : list<string>
- spatialReference : SpatialReference
- tileMatrices : list<WmtsTileMatrix>
- tileMatrixSetId : string
- title : string
- wellKnownScaleSetId : string
Detailed Description
A tile matrix set is a set of tile matrices and some common parameters of a layer in an Open Geospatial Consortium (OGC) Web Map Tile Service (WMTS).
A WmtsTileMatrixSet (also referred to as a "tiling scheme") may be obtained from a loaded WmtsServiceInfo.
A WmtsTileMatrixSet is composed of one or more predefined tile matrices for a series of fixed scales. As the scale descreases (see WmtsTileMatrix::scaleDenominator), the number of tiles in the matrix increases - each tile being of a smaller geographic area and of a higher resolution.
A WmtsTileMatrixSet is defined in a specific spatialReference and covers a defined extent.
Example: List the tile matrix sets for a service:
var serviceInfo = wmtsService.serviceInfo; var lyrs = [] for (var i = 0; i < serviceInfo.layerInfos.length; i++) { var WmtsLyrInfo = serviceInfo.layerInfos[i]; console.log(WmtsLyrInfo.wmtsLayerId); for (var j = 0; j < WmtsLyrInfo.tileMatrixSets.length; j++) { var tileMatrixSet = WmtsLyrInfo.tileMatrixSets[j]; console.log(tileMatrixSet.title); // create the WmtsLayer for this tile matrix set var lyr = ArcGISRuntimeEnvironment.createObject( "WmtsLayer", { url: wmtsService.url, wmtsLayerId: WmtsLyrInfo.wmtsLayerId, tileMatrixSetId: tileMatrixSet.tileMatrixId }); lyrs.push(lyr); // list the tile matrixes available at each scale for (var k = 0; k < tileMatrixSet.tileMatrices.length; k++) { var matrix = tileMatrixSet.tileMatrices[k]; console.log(matrix.tileMatrixId, matrix.scaleDenominator); } } }
Note: You cannot declare or create a component of this type in QML code.
See also WmtsServiceInfo, WmtsTileMatrix, WmtsLayerInfo, and WmtsLayer.
Property Documentation
extent : Envelope |
Returns the minimum bounding rectangle surrounding this tile matrix set (read-only).
Returns the list of zero or more commonly used or formalized words or phrases used to describe this tile matrix set (read-only).
spatialReference : SpatialReference |
Returns the SpatialReference of this tile matrix set (read-only).
tileMatrices : list<WmtsTileMatrix> |
Returns the list of tile matrices in this tile matrix set (read-only).
Returns the title of the WmtsTileMatrixSet (read-only).
Returns the ID of the well known scale set of this tile matrix set (read-only).