| Numéro d’ID de bogue |
BUG-000155165 |
| Envoi | January 18, 2023 |
| Dernière modification | August 20, 2024 |
| S’applique à | ArcGIS Pro |
| Version trouvée | 2.7 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 64 Bit |
| Version de correction | 3.4 |
| Statut | As Designed
Après examen par l’équipe de développement, il a été déterminé que ce comportement est prévu. Pour plus d’informations, reportez-vous à la section Informations supplémentaires.
|
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