Bug ID Number |
BUG-000155165 |
Submitted | January 18, 2023 |
Last Modified | August 20, 2024 |
Applies to | ArcGIS Pro |
Version found | 2.7 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Version Fixed | 3.4 |
Status | As Designed
After review by the development team, it has been determined that this behavior is as designed. See the Additional Information section for details.
|
Additional Information
This is as designed. Zoom to layer via the Contents pane zooms to the geometry of the layer and applies a small buffer to ensure symbology is not cut off at the edges. With arcpy.mp, mf.camera.setExtent(mf.getLayerExtent(l, False, True)) zooms to the geometry. Optionally, use mf.camera.scale * 1.1 to approximate the buffer the UI does.
Workaround
Use arcpy setExtent() to zoom to the layer's extent correctly.
Steps to Reproduce