漏洞 ID 编号 |
BUG-000155165 |
已提交 | January 18, 2023 |
上次修改时间 | August 20, 2024 |
适用范围 | ArcGIS Pro |
找到的版本 | 2.7 |
操作系统 | Windows OS |
操作系统版本 | 10.0 64 Bit |
修正版本 | 3.4 |
状态 | As Designed
经开发团队审核,已确定此行为符合设计。 有关详细信息,请参阅“其他信息”部分。
|
附加信息
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.
解决办法
Use arcpy setExtent() to zoom to the layer's extent correctly.
重现步骤