| Bug ID Number |
BUG-000126072 |
| Submitted | October 16, 2019 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS API for JavaScript |
| Version found | 4.13 |
| Operating System | Windows OS |
| Operating System Version | 10.0 64 Bit |
| Status | Non-Reproducible
This issue was not reproducible when tested by the development team. Issues may be given this status when they cannot be reproduced or are no longer relevant in a development version of the software, but a specific fix was not installed to address the issue. The issue's Additional Information section may contain further explanation.
|
Additional Information
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.
Workaround
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
}
Steps to Reproduce