require(["esri/layers/WMTSLayerInfo"], function(WMTSLayerInfo) { /* code goes here */ });
Name | Summary |
---|---|
new WMTSLayerInfo(options) | Creates a new WMTSLayerInfo object. |
< > options |
Required | An object that defines the layer info options. View the options list for the properties. |
options
properties: < > description |
Optional | The description of the layer defined by the abstract property of the capabilities file or resource info. |
< > format |
Optional | Specify a format supported by the service. |
< > fullExtent |
Optional | The full extent of the WMTS layer. |
< > identifier |
Optional | The layer id. |
< > initialExtent |
Optional | The initial extent of the WMTS layer. |
< > style |
Optional | Specify the layer style. |
< > 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 }] }); ... }); |
< > tileMatrixSet |
Optional | Define the tileMatrixSet for the layer. |
< > title |
Optional | The layer title. |
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" }); ... });