import WMTSSublayer from "@arcgis/core/layers/support/WMTSSublayer.js";const WMTSSublayer = await $arcgis.import("@arcgis/core/layers/support/WMTSSublayer.js");- Inheritance:
- WMTSSublayer→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.4
Represents a sublayer in a WMTSLayer.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
| | ||
Collection<WMTSStyle> | null | undefined | | |
tileMatrixSet readonly | | |
| | ||
| | ||
| |
description
- Type
- string
Description for the WMTS sublayer. This defaults to the value of the Abstract property from the GetCapabilities request.
id
- Type
- string
The unique ID assigned to the sublayer. If not set by the developer, it is automatically generated when the layer is loaded.
imageFormat
- Type
- string
The map image format (MIME type) to request. Defaults to the first item in imageFormats. Must be one of the supported imageFormats.
tileMatrixSet
- Type
- TileMatrixSet | null | undefined
The TileMatrixSet to request. Defaults to the first item in tileMatrixSets that matches the spatialReference of the view. Must be one of the supported tileMatrixSets.
tileMatrixSetId
- Type
- string
The id of the TileMatrixSet to request. Defaults to the id of the first item in tileMatrixSets that matches the spatialReference of the view. Must be one of the supported tileMatrixSets.
tileMatrixSets
- Type
- Collection<TileMatrixSet> | null | undefined
A collection of supported TileMatrixSets.
Methods
fromJSON
- Signature
-
fromJSON (json: any): any
Creates a new instance of this class and initializes it with values from a JSON object
generated from an ArcGIS product. The object passed into the input json
parameter often comes from a response to a query operation in the REST API or a
toJSON()
method from another ArcGIS product. See the Using fromJSON()
topic in the Guide for details and examples of when and how to use this function.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| json | A JSON representation of the instance in the ArcGIS format. See the ArcGIS REST API documentation for examples of the structure of various input JSON objects. | |
- Returns
- any
Returns a new instance of this class.
clone
- Signature
-
clone (): WMTSSublayer
Creates a deep clone of the WMTS sublayer.
- Returns
- WMTSSublayer
A deep clone of the WMTS sublayer instance that invoked this method.
toJSON
- Signature
-
toJSON (): any
Converts an instance of this class to its ArcGIS portal JSON representation. See the Using fromJSON() guide topic for more information.
- Returns
- any
The ArcGIS portal JSON representation of an instance of this class.