Select to view content in your preferred language

Showing past the defined extent

215
1
Jump to solution
07-03-2025 12:21 PM
LandonGarrett
New Contributor

I have a image generator script but there is an issue with the outputted image. When it creates the layout it includes parts of the map beyond the extent. And even when I go into arcpro manually and enter the extent in the map properties it still shows beyond the defined extent. I am wondering if that is just how arcpro works or is there a way to get around it. Bellow is the layout and you can see how on the top and bottom it it shows beyond what I have set, the extent is:

Top: 45.0000000°N
Left: 82.0000000°W
Right: 45.0000000°W
Bottom: 25.0000000°Nlayoutview.png

 

 

 

 

1 Solution

Accepted Solutions
Leena_Abdulqader
Frequent Contributor

Hey @LandonGarrett ,I don't know how to do it in script, and not sure if you tried this but I think you should adjust the Map Frame to match the Extent Ratio if you haven’t already. So your extent

Width: 82 - 45 = 37 degrees

Height: 45 - 25 = 20 degrees

Aspect ratio ≈ 37/20 = 1.85

Match your map frame shape to that ratio:

For example: set width = 18.5 cm, height = 10 cm Or any proportionally scaled version of 1.85:1

To doo this in the layout view manually:

1. Select the map frame

2. In the Element pane, manually adjust the size

Hope that helps!

View solution in original post

0 Kudos
1 Reply
Leena_Abdulqader
Frequent Contributor

Hey @LandonGarrett ,I don't know how to do it in script, and not sure if you tried this but I think you should adjust the Map Frame to match the Extent Ratio if you haven’t already. So your extent

Width: 82 - 45 = 37 degrees

Height: 45 - 25 = 20 degrees

Aspect ratio ≈ 37/20 = 1.85

Match your map frame shape to that ratio:

For example: set width = 18.5 cm, height = 10 cm Or any proportionally scaled version of 1.85:1

To doo this in the layout view manually:

1. Select the map frame

2. In the Element pane, manually adjust the size

Hope that helps!

0 Kudos