Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/workers
Class: WMTSLayerInfo

require(["esri/layers/WMTSLayerInfo"], function(WMTSLayerInfo) { /* code goes here */ });

Description

(Added at v2.4)
The WMTSLayerInfo class defines and provides information about layers in a WMTS service.

Samples

Search for samples that use this class.

Constructors

NameSummary
new WMTSLayerInfo(options)Creates a new WMTSLayerInfo object.
Constructor Details

new WMTSLayerInfo(options)

Creates a new WMTSLayerInfo object.
Parameters:
<Object> options Required An object that defines the layer info options. View the options list for the properties.
options properties:
<String> description Optional The description of the layer defined by the abstract property of the capabilities file or resource info.
<String> format Optional Specify a format supported by the service.
<Extent> fullExtent Optional The full extent of the WMTS layer.
<String> identifier Optional The layer id.
<Extent> initialExtent Optional The initial extent of the WMTS layer.
<String> style Optional Specify the layer style.
<TileInfo> tileInfo Optional A tile info object. Note that the level property of the lods is the name of the tile matrix followed by the level number.
require([
  "esri/layers/TileInfo", "esri/SpatialReference", ... 
], function(Map, SpatialReference, ... ) {
  var tileInfo1 = new TileInfo({
    "dpi": 90.71428571428571,
    "format": "image/png",
    "compressionQuality": 0,
    "spatialReference": new SpatialReference({
      "wkid": 3857
    }),
    "height": 256,
    "width": 256,
    "origin": {
      "x": -20037508.34,
      "y": 20037508.34
    },
    "lods": [{
      "level": "EPSG:900913:8",
      "scale": 2183915.0935581755,
      "resolution": 611.4962261962892
    }, {
      "level": "EPSG:900913:9",
      "scale": 1091957.5467790877,
      "resolution": 305.7481130981446
    }, {
      "level": "EPSG:900913:10",
      "scale": 545978.7733895439,
      "resolution": 152.8740565490723
    }]
  });
  ...
});
<String> tileMatrixSet Optional Define the tileMatrixSet for the layer.
<String> title Optional The layer title.
Sample:
require([
  "esri/layers/WMTSLayerInfo", ... 
], function(WMTSLayerInfo, ... ) {
  var layerInfo = new WMTSLayerInfo({
    tileInfo: tileInfo1,
    fullExtent: tileExtent1,
    initialExtent: tileExtent1,
    identifier: "medford:zoning",
    tileMatrixSet: "EPSG:900913",
    format: "gif",
    style: "_null"
  });
  ...
});