laptop and a wrench

Error

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

Última publicación: February 27, 2023 ArcGIS Pro
Número de ID del error BUG-000155165
EnviadoJanuary 18, 2023
Última modificaciónAugust 20, 2024
Relacionado conArcGIS Pro
Versión encontrada2.7
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida3.4
EstadoAs Designed

Información adicional

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.

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000155165

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga