Bug
| Bug ID Number | BUG-000129390 |
|---|---|
| Submitted | March 13, 2020 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS API for JavaScript |
| Version found | 4.14 |
| Operating System | Windows OS |
| Operating System Version | 10.0 |
| Version Fixed | 4.16 |
| Status | Fixed |
Instead of setting the ZoomScale property, update view.scale or view.zoom in a 'select-result' event of the Search widget. For example:
searchWidget.on("select-result", function(event) {
view.goTo({
scale: 500000
});
});
For more information, refer to ArcGIS JavaScript API/4.14/API Reference: Event Details.
Bug ID: BUG-000129390
Software:
Get help from ArcGIS experts
Download the Esri Support App