WmtsTileMatrixSet QML Type

  • Esri.ArcGISRuntime
  • WmtsTileMatrixSet
  • A WMTS tile matrix set. More...

    Import Statement: import Esri.ArcGISRuntime
    Since: Esri.ArcGISRuntime 100.1
    Inherits:

    Object

    Properties

    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

    [read-only] description : string

    Returns the description of this tile matrix set (read-only).


    [read-only] extent : Envelope

    Returns the minimum bounding rectangle surrounding this tile matrix set (read-only).


    [read-only] keywords : list<string>

    Returns the list of zero or more commonly used or formalized words or phrases used to describe this tile matrix set (read-only).


    [read-only] spatialReference : SpatialReference

    Returns the SpatialReference of this tile matrix set (read-only).


    [read-only] tileMatrices : list<WmtsTileMatrix>

    Returns the list of tile matrices in this tile matrix set (read-only).


    [read-only] tileMatrixSetId : string

    Returns the ID of this tile matrix set (read-only).


    [read-only] title : string

    Returns the title of the WmtsTileMatrixSet (read-only).


    [read-only] wellKnownScaleSetId : string

    Returns the ID of the well known scale set of this tile matrix set (read-only).


    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.