Share raster tile layers from vector tile content
You can share raster tile layers that reference style resources using ready-to-serve vector cache datasets via the ArcGIS API for Python. These raster tile layers can be used to create cache tiles that allow for rendering in clients that do not support WebGL.
Tile requests (cache-on-demand, pre-generated)
WMS
WMTS
Any projection or tiling scheme of a source vector tile. Derived raster tiles can have any projection or tiling scheme independent of source vector tiles.
Share a raster tile layer
To share a raster tile layer from vector tile content, do the following:
Note:
This workflow requires ArcGIS Pro and the ArcGIS API for Python.
In ArcGIS Pro, use the Extract Package tool to extract the Vector Tile Package (
.vptk) in a ready-to-serve format that you can share a raster tile layer from.A ready-to-serve
.vtilesfolder is created.Update the URL parameter in the
../resources/styles/root.jsonfile of your vector style resource to reference the.vtilesfolder created in the previous step.Custom style referencing a single ready-to-serve
.vtilesresource:Example:
{ "version" : 8, "sprite" : "../sprites/sprite", "glyphs" : "../fonts/{fontstack}/{range}.pbf", "sources" : { "esri" : { "type" : "vector", "url" : "<../relative path to the .vtiles folder>" } }, }Custom style referencing multiple ready-to-serve
.vtilesresources:Example:
{ "version": 8, "sprite": "../sprites/sprite", "glyphs": "../fonts/{fontstack}/{range}.pbf", "sources": { "esri": { "type" : "vector", "url" : "../<FolderName>.vtiles" }, "contours": { "type": "vector", "url": "../<FolderName>.vtiles" }, "hillshade": { "type": "vector", "url": "../<FolderName>.vtiles" } }, }
Add a folder data store item in the organization for the path of the source vector tile content.
Provide a location where the raster tiles will be generated as a cache data store. This can be either a folder store or a cloud store.
In ArcGIS Pro, define the tiling scheme of the raster tile layer.
Configure and publish the raster tile layer.
You can manage the cache for the raster tile layer in ArcGIS Pro using the Caching toolset. It is recommended that you pre-generate top levels with the Manage Map Server Cache Tiles tool and generate cache on demand for areas that are not frequently accessed by users. These services use shared map service instances. For better throughput of cache on demand, increase the number of map instances or use dedicated instances and increase its number of instances.
Note:
These services cannot be managed in ArcGIS Server Manager.
Update your raster tile layer
When the source vector tile content or styles have been updated, you can update your raster tile layer. See the Overwrite raster tile layer with new vector tile content topic in the ArcGIS API for Python documentation for more information.