How to set custom map extent in ArcGIS Pro using Python

12-16-2019 10:39 AM
New Contributor III

I want to automate the creation of a set of vector tile caches, but each VTPK will be of a different map extent. I can manually change the map extent via the "Map Properties" dialog to "Use a customer extent". But I want to do that in my python script.

How do I do this? Or, is the "best" way to create vector tile cache index polygons and reference that in the "create vector tile cache"?


0 Kudos
1 Reply
Esri Contributor

Looks like the Create Vector Tile Package tool will honor the map's extent as defined in the extent tab of the map settings, per this post:

You can set the extent using the setExtent function on Camera object, but I am not sure if this will change the actual map's defining bounds or just the current display:


0 Kudos