Skip to content

How to work with vector tile services

A vector tile services is a service that provides vector tiles for a map. Vector tiles are pre-rendered images of map data that can be displayed in a map viewer. To use vector tile services, create a feature service in your portal, then use data management tools to publish a hosted vector tile layer and service. After creation, manage the layer and service settings through the hosted vector tile layer.

1. Create feature service

Before you can use create and use a vector tile service, you need to first create a feature service. A feature service provides features for a map. Features are points, lines, or polygons that represent real-world objects. To create a feature service, you need to import data to create a feature layer. You can use various data formats including shapefiles, GeoJSON, or CSV files with location data.

2. Configure feature layer

After you have created a feature service, you can configure the hosted feature layer properties and service settings. Additionally, you can set up visualization settings before publishing vector tiles.

3. Publish vector tiles

Once you have configured the feature layer, you can use data management tools to publish the vector tile service from your feature layer.

4. Manage vector tile service

Managing and configuring your vector tile service is done through the hosted vector tile layer item details page. The item details page provides an overview of the vector tile service, including its properties, statistics, and configuration options.

5. Access vector tiles

After you have created a vector tile service, you can access the vector tiles in your applications using the service URL. The service URL is a unique URL that points to the vector tile service. You can use the service URL to access the vector tiles in your applications.

The steps to display vector tiles are:

  1. Get the URL for the vector tile service you want to display.
  2. Set the service URL for the vector tile service.
  3. Add the layer to a map.
Vector tile service showing global land cover raster data at 10 m resolution.
ArcGIS Maps SDK for JavaScriptArcGIS Maps SDK for JavaScriptArcGIS Maps SDK for .NETArcGIS Maps SDK for KotlinArcGIS Maps SDK for SwiftArcGIS Maps SDK for JavaEsri LeafletMapLibre GL JSArcGIS Maps SDK for QtOpenLayers
Expand
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
      esriConfig.apiKey = "YOUR_ACCESS_TOKEN"

      const vectorLayer = new VectorTileLayer({
        portalItem: {
          id: "b8f6941ceb874d72a7c37418c3e8108d",
        },
        opacity: 0.75,
      })

      const map = new Map({
        basemap: "arcgis/light-gray",
        layers: [vectorLayer],
      })
Expand

Tutorials

Add a vector tile layer

Access and display a vector tile layer in a map.


Add a map tile layer

Access and display a map tile layer in a map.


Query a feature layer (spatial)

Execute a spatial query to get features from a feature layer.


Edit feature data

Add, update, and delete features in a feature service.


Display a popup

Format a popup to show attributes in a feature layer.


Workflows

Services

API support

Use data management tools or Client APIs to create, manage, and access data services. The table below outlines the level of support for each API.

CreateManageAccess
ArcGIS Maps SDK for JavaScript1
ArcGIS Maps SDK for Kotlin1
ArcGIS Maps SDK for Swift1
ArcGIS Maps SDK for Flutter1
ArcGIS Maps SDK for Java1
ArcGIS Maps SDK for .NET1
ArcGIS Maps SDK for Qt1
ArcGIS API for Python
ArcGIS REST JS
Esri Leaflet2
MapLibre GL JS23
OpenLayers23
CesiumJS23
Full supportPartial supportNo support
  • 1. Use portal class and direct REST API requests
  • 2. Access via ArcGIS REST JS
  • 3. Requires manually setting styles for renderers

Tools

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.