An Open Geospatial Consortium (OGC) Web Map Tile Service (WMTS). More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.1 |
Inherits: |
Properties
- credential : Credential
- customParameters : jsobject
- loadError : Error
- loadStatus : Enums.LoadStatus
- requestConfiguration : RequestConfiguration
- serviceInfo : WmtsServiceInfo
- url : url
Signals
- credentialChanged()
- customParametersChanged()
- loadErrorChanged()
- loadStatusChanged()
- requestConfigurationChanged()
- serviceInfoChanged()
- urlChanged()
Methods
- void cancelLoad()
- void load()
- void retryLoad()
Detailed Description
The OGC WMTS standard describes an implementation for serving maps using predefined tiles. The WMTS service may be hosted in the cloud on ArcGIS Online, on a third-party server, or on-premises with ArcGIS Server.
The WmtsService is constructed using the URL of the service and once the load task completes (see Loadable) allows the user to browse for predefined content via the serviceInfo.
A WMTS service provides access to a set of cached tiles at predefined scales. The service provides one or more tile matrix sets, each of which which is composed of one or more tile matrices for a series of fixed scales. As the scale descreases, the number of tiles in the matrix increases - each tile being of a smaller geographic area and of a higher resolution.
A WMTS service may also host several layers, each of which can be described by a WmtsLayerInfo.
Example: List the WMTS layers available in a service:
WmtsService { id: wmtsService url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS" onLoadStatusChanged: { if (loadError) console.log(loadError.message, loadError.additionalMessage); if (loadStatus !== Enums.LoadStatusLoaded) return; var serviceInfo = wmtsService.serviceInfo; var layerInfos = serviceInfo.layerInfos; // create a WmtsLayer for each layer in the service for (var i = 0; i < layerInfos.length; i++) { var lyrInfo = layerInfos[i]; console.log(lyrInfo.title); var lyr = ArcGISRuntimeEnvironment.createObject("WmtsLayer"); lyr.layerInfo = lyrInfo; } } }
See also Loadable, RemoteResource, Loadable, WmtsLayerInfo, and WmtsLayer.
Property Documentation
credential : Credential |
Returns the security credential used to access this WmtsService.
Only applicable if the service is secured.
Returns key/value pairs representing the custom parameters.
These parameters are appended to GetCapabilities and GetTile. If a parameter with the same name is defined in a layer's custom parameters, then layer-specific values take precedence over service-wide values. Parameters intended for GetCapabilities requests should be set before the service is loaded.
This property was introduced in Esri.ArcGISRuntime 100.6.
loadError : Error |
Returns the loadError of the WmtsService (read-only).
Returns the loadStatus of the WmtsService (read-only).
See also Enums.LoadStatus.
requestConfiguration : RequestConfiguration |
The RequestConfiguration in use by this task.
serviceInfo : WmtsServiceInfo |
The WmtsServiceInfo for this service.
The URL of this WmtsService.
Signal Documentation
Emitted when the credential property changes.
Note: The corresponding handler is onCredentialChanged
.
Emitted when the customParameters property changes.
Note: The corresponding handler is onCustomParametersChanged
.
This signal was introduced in Esri.ArcGISRuntime 100.6.
Emitted when the loadError property changes.
Note: The corresponding handler is onLoadErrorChanged
.
Emitted when the loadStatus property changes.
Note: The corresponding handler is onLoadStatusChanged
.
Emitted when the requestConfiguration property changes.
Note: The corresponding handler is onRequestConfigurationChanged
.
Emitted when the serviceInfo property changes.
Note: The corresponding handler is onServiceInfoChanged
.
Emitted when the url property changes.
Note: The corresponding handler is onUrlChanged
.
Method Documentation
See Loadable.
See Loadable.
See Loadable.