Load ArcGIS vector tiled layers using custom styles.
Vector tile basemaps can be created in ArcGIS Pro and published as offline packages or online services. You can create a custom style tailored to your needs and easily apply them to your map. The layer's colors, patterns, icons, and labels could be modified, for example.
Pan and zoom to explore the vector tile basemap.
- Create a
PortalItem
for each vector tiled layer. - Create a
Map
and set the defaultViewpoint
. - Export the light and dark offline custom styles.
i. Create aExportVectorTilesTask
using the portal item.
ii. Get the path for where the cache is being stored locally.
iii. Return with the cache if the path already exists.
iv. Else, create aExportVectorTilesJob
by having the task callExportStyleResourceCache
with the path as a parameter.
v. Start the job.
vi. When the job completes, store the result as aExportVectorTilesResult
.
vii. Return the result's item resource cache. - Update the
Basemap
andViewpoint
when a new style is selected.
- ExportVectorTilesJob
- ExportVectorTilesResult
- ExportVectorTilesTask
- VectorTileCache
- VectorTiledLayer
- VectorTilesTask
tiles, vector, vector basemap, vector tiled layer, vector tiles