laptop and a wrench

漏洞

The Search widget result does not always have an appropriate extent to zoom to for the size of the searched location.

上次发布: November 7, 2019 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000126072
已提交October 16, 2019
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本4.13
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Non-Reproducible

附加信息

This is not a bug with ArcGIS API for JavaScript, rather the documentation is updated to include a better explanation of how this works. By default, the Search widget sets the view on the Search result. The level of detail (LOD) at the center of the view depends on the data source, with higher quality data sources returning extents closer to the feature obtained from the search.

解决办法

let pt = new Point({

                    latitude: event.result.feature.geometry.latitude,

                    longitude: event.result.feature.geometry.longitude

});

 

if (view.zoom < 14) {

       view.goTo({

                        target: pt,

zoom: 14

}

重现步骤

漏洞 ID: BUG-000126072

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项