Vector Tile Layer (VectorTileLayer)

A vector tile layer references a set of web-accessible vector tiles and the corresponding style for how those tiles should be drawn.

Properties

Property Details
id A string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal.
itemId Optional string containing the item ID of the service if it's registered on ArcGIS Online or your organization's portal.
layerType String indicating the layer type.
Value of this property must be VectorTileLayer
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.
styleUrl A url to a JSON file containing the stylesheet information used to render the layer. You may also pass an object containing the stylesheet information identical to the JSON file.
title A user-friendly string title for the layer that can be used in a table of contents.
type Deprecated. User layerType instead.
visibility Boolean property determining whether the layer is initially visible in the web map.

Example

Live sample web maps showing the VectorTileLayer as an operationalLayer

{
  "operationalLayers": [
    {
      "id": "VectorTile_8897",
      "type": "VectorTileLayer",
      "layerType": "VectorTileLayer",
      "title": "World_Basemap",
      "styleUrl": "https://basemaps.arcgis.com/b2/arcgis/rest/services/World_Basemap/VectorTileServer/resources/styles/root.json",
      "itemId": "bdf1eec3fa79456c8c7c2bb62f86dade",
      "visibility": true,
      "opacity": 1
    }
  ]
}

Example

Live sample web maps showing the VectorTileLayer as a baseMapLayer.

{
  "baseMapLayers": [
    {
      "id": "VectorTile_1933",
      "type": "VectorTileLayer",
      "layerType": "VectorTileLayer",
      "title": "World_Basemap",
      "styleUrl": "https://basemaps.arcgis.com/b2/arcgis/rest/services/World_Basemap/VectorTileServer/resources/styles/root.json",
      "visibility": true,
      "opacity": 1
    }
  ],
  "title": "VectorTileLayer as BaseMap"
}

Feedback on this topic?