laptop and a wrench

Bug

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

Zuletzt veröffentlicht: February 27, 2023 ArcGIS Pro
Bug-ID-Nummer BUG-000155165
EingereichtJanuary 18, 2023
Zuletzt geändertAugust 20, 2024
Gilt fürArcGIS Pro
Gefunden in Version2.7
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version3.4
StatusAs Designed

Zusätzliche Informationen

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.

Schritte zur Reproduzierung

Bug-ID: BUG-000155165

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln