Publish a vector tile layer
Learn how to use ArcGIS Online to publish a vector tile layer.
To create a vector tile layer, you first import data as a hosted feature layer and then publish it as a hosted vector tile layer. This workflow is helpful when you need to render large datasets on the client. Using a vector tile layer can significantly improve display performance of the data in a map.
In this tutorial, you use the Publish tool in ArcGIS Online to convert a hosted feature layer to a hosted vector tile layer using the Santa Monica Mountains Parcels dataset, which contains a large amount of polygon features that represent property parcels.
Prerequisites
You need an ArcGIS account to access your dashboard and manage hosted layers. Sign up for an account for free.
Steps
Download the data
Use the Santa Monica Mountains Parcles dataset as the basis for this tutorial. However, you can also use your own feature layer created in either the Import data as a feature layer or Create a new feature layer tutorials.
- Download the Santa Monica Mountains Parcles dataset. Do not unzip this file, you will upload it as is.
Create a feature layer
Import the downloaded Shapefile to create a hosted feature layer.
Sign in to your account in ArcGIS Online.
Click Content > Add Item > Upload from computer.
Upload the Santa_Monica_Mountains_Parcels.zip Shapefile. Wait for the upload to complete. When it completes, you will be directed to the item page of the new feature layer.
Style the feature layer
Before publishing a vector tile layer, it is recommended to style the feature layer. When you style the feature layer, the styles will be applied to the vector tile layer when it's published. You can also associate attributes with the vector tile layer that is published.
Go back to the item page page > Visualization.
In the left panel, click the Change style icon.
Under Choose an attribute to show select: UseType.
Under Select a drawing style > Types(Unique symbols) > Options.
Click Symbols to select a color ramp to display different colors for each type of parcel.
Click Outline and set the following:
- Hex code:
#1A1A1A
. - Uncheck Adjust outline automatically.
- Transparency:
5%
. - Line Width:
1
px.
- Hex code:
Click OK
Set the Overall Transparency to
50%
> OK > Done.Click Save to save the stylings for your layer.
Publish a vector tile layer
Go back to the item page page of the feature layer.
On the right-side of the page, click Publish > Vector Tile layer.
Click Select attributes and select UseType and Roll_LandV.
At minimum, enter a Title and Tags for your vector tile layer. Click OK.
Once you click OK, you will be directed to the item page page for the new vector tile layer. Wait for the the cache to build.
In the item page, click Share > Everyone (public).
View the vector tile layer
- In the item page, click Open in Map Viewer to view the vector tile layer.
Your vector tile layer should look something like this.
Find the URL endpoint and style definition
The item for a vector tile layer defines the service properties and its styles.
In the item page, scroll down the page and click View to view the vector tile layer metadata and its service URL. To access the vector tile data in an application, use the URL+
tile/{z}/{y}/{x}.pbf
. For example:Go back to the item page. To view the style, click View style. The style will look something like this:
With the vector tile layer published, you can now access the layer using the {z}/{y}/{x}.pbf
path. Or, you can access the style with the service URL+root.json
. For example:
What's Next?
Learn how to use additional tools, APIs, and location services in these tutorials:

Create a new feature layer
Use data management tools to create a new hosted feature layer.

Access feature layer data
Use ArcGIS Online tools to access and display feature layer data.

Import data as a feature layer
Use data management tools to import and create hosted feature layers.

Manage a feature layer
Set the properties and capabilities of a hosted feature layer.

Add a feature layer
Access and display point, line, and polygon features from a feature service

Add a vector tile layer
Access and display a vector tile layer in a map.

Add an image tile layer
Access and display an image tile layer in a map.

Style a feature layer
Use symbols and renderers to style feature layers.

Query a feature layer (spatial)
Execute a spatial query to get features from a feature layer.

Query a feature layer (SQL)
Execute a SQL query to access polygon features from a feature layer.

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

Display a pop-up
Format a pop-up to show attributes in a feature layer.