AnsweredAssumed Answered

Search widget won't zoom??

Question asked by ardaiel on Nov 30, 2018
Latest reply on Mar 13, 2020 by lxie-esristaff

When I create a search widget (using 4.9) when I search for a location using the esri geocoder, it zooms to the result just fine.  But I've also defined a feature layer source, and it WON'T zoom to that result; only pan.  I've tried setting the zoomScale to several different values, but it makes no difference. It will pan, but not zoom.  Any help?? I can't find any examples with zoom at all.

Here's a pared down version:


searchWidgetTest = new Search({
  view: view,
    featureLayer: new FeatureLayer({
      url: "https://server/arcgis/rest/services/folder/layers/MapServer/0"
  searchFields: ["NAME", "NUMBER"],