Select to view content in your preferred language

Exporting Static Map from VectorTileServer

361
1
06-07-2023 01:28 PM
FlockSafety
New Contributor II

Hey guys,

Following this guide: https://community.esri.com/t5/developers-blog/how-to-put-a-static-map-in-your-app/ba-p/892195

It's possible to export a static map as a PNG for a lightweight path to displaying a specific point on a map.

The guide references the mature World_Street_Map MapServer. My question is around performing the same workflow, but with a more modern VectorTileServer, like https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer

Is this possible? We use the Vector basemaps throughout the rest of our application, so would love to keep things consistent.

0 Kudos
1 Reply
NicolasGIS
Regular Contributor

Using the Printing Tools Service for example ?

rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute

add passing your vector tile layer in a simple web_map_as_json parameter.

0 Kudos