Select to view content in your preferred language

Automatically have the inset maps to zoom in on the cluster of points rather than just being a general unzoomed map by using ArcPy

918
1
06-04-2024 02:20 PM
YahyaMasri
Emerging Contributor

I am working on automating the process of inset maps and was wondering if anyone knew how to automate the zoom on the extent map. For example, in this photo you can see two inset maps created of cluster layers, however this doesn't do any good since the inset map is zoomed out. 

YahyaMasri_0-1717535738015.png

After some experimenting I found out how to zoom in manually which involved opening the inset map by rightclicking it on the layout and pressing "Open". Zooming in how you would like and then going back to the layout, rightclick again and press "Zoom to Last Active Map". After doing this the inset maps on the layout now look like this: 

YahyaMasri_1-1717535969973.png

 

I was wondering if someone knows how to do this automatically using ArcPy?

 

0 Kudos
1 Reply
AubriKinghorn
Esri Regular Contributor

Hi! 

You can activate the map frame in the layout and then zoom in, so you don't have to switch views. Instead of choosing Open when you right click the map frame, choose Activate. Then you'll be able to zoom and pan within the layout view itself. Learn more about navigating maps in layouts here https://pro.arcgis.com/en/pro-app/latest/help/layouts/work-with-a-map-on-a-layout.htm

 

Cheers,
Aubri
0 Kudos