WebTiledLayer

A tile layer is a derived from a set of web-accessible tiles which reside on a server. The tiles are accessed by a direct URL request from the web browser. Because the tiles in a tile layer are not available as a service, they must be in a specific format for a web app such as the ArcGIS.com map viewer to display the layer on a map.

Properties

Property Details
copyright Attribution to the Web Tiled Layer provider. It is displayed in the attribution on the web map. Input required by the user when the layer is added to the web map.
fullExtent An extent object representing the full extent envelope for the layer.
id A unique identifying string for the layer.
isReference This is applicable if used as a baseMapLayer. A boolean value indicating whether or not the baseMapLayer draws on top (true) of other layers, including operationalLayers , or below (false).
itemId Unique string value indicating an item registered in ArcGIS Online or your organization's portal.
layerType String indicating the layer type.
Value of this property must be WebTiledLayer
maxScale A number representing the maximum scale at which the layer will be visible. The number is the scale's denominator.
minScale A number representing the minimum scale at which the layer will be visible. The number is the scale's denominator.
opacity The degree of transparency applied to the layer on the client side, where 0 is full transparency and 1 is no transparency.
refreshInterval Refresh interval of the layer in minutes. Non-zero value indicates automatic layer refresh at the specified interval. Value of 0 indicates auto refresh is not enabled.
subDomains If subdomains are detected, they must be specified. The map viewer detects if the Web Tiled Layer has subdomains by parsing the templateURL value for {subDomain}.
templateUrl URL to the Web Tiled Layer. Input required by the user when the layer is added to the web map. The template URL contains a parameterized URL. The URL can contain the following templated parameters: 'level', 'col', 'row', and 'subDomain'.
tileInfo Contains the spatial reference and the tiling scheme of the layer. Typically retrieved from a WMTS OGC Web Service. If missing the layer must be in the WGS 1984 Web Mercator (Auxiliary Sphere) tiling scheme.
title A user-friendly string title for the layer that can be used in a table of contents.
type Deprecated, use layerType instead.
visibility Boolean property determining whether the layer is initially visible in the web map.
wmtsInfo Object containing information about the chosen WMTS service layer and tiling schema.

WebTiledLayer as an operationalLayer Example

Live sample web maps showing the WebTiledLayer as an operationalLayer.

{
  "operationalLayers": [
    {
      "templateUrl": "https://{subDomain}.tile.thunderforest.com/cycle/{level}/{col}/{row}.png",
      "id": "OpenCycleMap",
      "type": "WebTiledLayer",
      "layerType": "WebTiledLayer",
      "title": "OpenCycleMap",
      "copyright": "'Maps © <a href='https://www.thunderforest.com'>Thunderforest</a>, Data © <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap contributors</a>'",
      "fullExtent": {
        "xmin": -20037508.342787,
        "ymin": -20037508.34278,
        "xmax": 20037508.34278,
        "ymax": 20037508.342787,
        "spatialReference": {
          "wkid": 102100
        }
      },
      "subDomains": [
        "a",
        "b",
        "c"
      ],
      "visibility": true,
      "opacity": 1
    }
  ]
}

WebTiledLayer as a baseMapLayer Example

Live sample web maps showing the WebTiledLayer as a baseMapLayer.

{
  "baseMapLayers": [
    {
      "templateUrl": "https://{subDomain}.tile.thunderforest.com/cycle/{level}/{col}/{row}.png",
      "id": "OpenCycleMap",
      "type": "WebTiledLayer",
      "layerType": "WebTiledLayer",
      "title": "OpenCycleMap",
      "copyright": "'Maps © <a href='https://www.thunderforest.com'>Thunderforest</a>, Data © <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap contributors</a>'",
      "fullExtent": {
        "xmin": -20037508.342787,
        "ymin": -20037508.34278,
        "xmax": 20037508.34278,
        "ymax": 20037508.342787,
        "spatialReference": {
          "wkid": 102100
        }
      },
      "subDomains": [
        "a",
        "b",
        "c"
      ],
      "visibility": true,
      "opacity": 1
    }
  ],
  "title": "Topographic"
}

WebTiledLayer from a WMTS service Example

{
  "operationalLayers": [
    {
      "templateUrl": "http://maps1.wien.gv.at/wmts/lb/farbe/google3857/{level}/{row}/{col}.jpeg",
      "id": "WMTS_659",
      "itemId": "0217f8067457410a998fc9293563ba94",
      "layerType": "WebTiledLayer",
      "title": "Luftbild",
      "copyright": "http://data.wien.gv.at/nutzungsbedingungen",
      "fullExtent": {
        "xmin": 1800036.1661272035,
        "ymin": 6123507.424977349,
        "xmax": 1845677.1573524445,
        "ymax": 6161931.724216427,
        "spatialReference": {
          "wkid": 102100
        }
      },
      "tileInfo": {},
      "wmtsInfo": {
        "url": "http://maps.wien.gv.at/wmts",
        "layerIdentifier": "lb",
        "tileMatrixSet": "google3857"
      },
      "visibility": true,
      "opacity": 1,
      "minScale": 591658710.9094299,
      "maxScale": 1128.499433349543
    }
  ]
}

Feedback on this topic?