laptop and a wrench

Bogue

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

Dernière publication: February 27, 2023 ArcGIS Pro
Numéro d’ID de bogue BUG-000155165
EnvoiJanuary 18, 2023
Dernière modificationAugust 20, 2024
S’applique àArcGIS Pro
Version trouvée2.7
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction3.4
StatutAs Designed

Informations supplémentaires

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.

Solution de contournement

Use arcpy setExtent() to zoom to the layer's extent correctly.

Étapes pour reproduire

ID de bogue: BUG-000155165

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement