laptop and a wrench

Bug

The ZoomScale property fails to set zoom scale for the selected search result from LayerSearchSource.

Last Published: March 18, 2020 ArcGIS API for JavaScript
Bug ID Number BUG-000129390
SubmittedMarch 13, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.14
Operating SystemWindows OS
Operating System Version10.0
Version Fixed4.16
StatusFixed

Workaround

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.

Steps to Reproduce

Bug ID: BUG-000129390

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options