laptop and a wrench

Bug

The Zoom To Layer function on ArcGIS Pro Contents pane does not follow the layer's extent

Last Published: February 27, 2023 ArcGIS Pro
Bug ID Number BUG-000155165
SubmittedJanuary 18, 2023
Last ModifiedAugust 20, 2024
Applies toArcGIS Pro
Version found2.7
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed3.4
StatusAs Designed

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

Bug ID: BUG-000155165

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options