<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Search widget won't zoom?? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247093#M22875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's just a random one I put in for the example; I've tried dozens of different scales.&amp;nbsp; The zoom works for all other geometry types, just not point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2018 15:27:28 GMT</pubDate>
    <dc:creator>KarenEllett</dc:creator>
    <dc:date>2018-12-03T15:27:28Z</dc:date>
    <item>
      <title>Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247089#M22871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&amp;nbsp; But I've also defined a feature layer source, and it WON'T zoom to that result; only pan.&amp;nbsp; I've tried setting the zoomScale to several different values, but it makes no difference. It will pan, but not zoom.&amp;nbsp; Any help?? I can't find any examples with zoom at all.&lt;/P&gt;&lt;P&gt;Here's a pared down version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;searchWidgetTest = new Search({&lt;BR /&gt;&amp;nbsp; view: view,&lt;BR /&gt;&amp;nbsp; sources:[{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; featureLayer: new FeatureLayer({&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver%2Farcgis%2Frest%2Fservices%2Ffolder%2Flayers%2FMapServer%2F0" rel="nofollow" target="_blank"&gt;https://server/arcgis/rest/services/folder/layers/MapServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }),&lt;BR /&gt;&amp;nbsp; searchFields: ["NAME", "NUMBER"],&lt;BR /&gt;&amp;nbsp; zoomScale:200&lt;BR /&gt;&amp;nbsp; }]&lt;BR /&gt; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2018 16:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247089#M22871</guid>
      <dc:creator>KarenEllett</dc:creator>
      <dc:date>2018-11-30T16:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247090#M22872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;What type of geometry is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2018 17:21:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247090#M22872</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-11-30T17:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247091#M22873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, it's a point geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247091#M22873</guid>
      <dc:creator>KarenEllett</dc:creator>
      <dc:date>2018-12-03T14:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247092#M22874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Are you SURE that 200 is a valid scale from the map you are using? If you are using an esri basemap then 200 is Not a valid scale.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:46:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247092#M22874</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-12-03T14:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247093#M22875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's just a random one I put in for the example; I've tried dozens of different scales.&amp;nbsp; The zoom works for all other geometry types, just not point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 15:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247093#M22875</guid>
      <dc:creator>KarenEllett</dc:creator>
      <dc:date>2018-12-03T15:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247094#M22876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;OK. I have tested and if you revert back to 4.8 then the zoomScale for a point FeatureLayer Does work but does not in 4.9. I just tested in 4.10 Beta and it does not work either. So you need to contact esri tech support and report this bug and Maybe it will get fixed before they release 4.10 in mid Dec.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 15:48:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247094#M22876</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-12-03T15:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247095#M22877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247095#M22877</guid>
      <dc:creator>KarenEllett</dc:creator>
      <dc:date>2018-12-03T16:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247096#M22878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247096#M22878</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-12-03T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247097#M22879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also can't get the search widget (4.14) to zoom - it pans ok. It's a point layer using AGOL satellite basemap.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require([&lt;BR /&gt; "esri/Map", "esri/views/MapView", "esri/views/SceneView", "esri/layers/FeatureLayer", "esri/widgets/LayerList", "esri/layers/GroupLayer",&lt;BR /&gt; "esri/widgets/Home", "esri/symbols/SimpleFillSymbol", "esri/layers/support/LabelClass", "esri/widgets/Search", "esri/widgets/Search/LayerSearchSource"],&lt;BR /&gt; function (Map, MapView, SceneView, FeatureLayer, LayerList, GroupLayer, Home, SimpleFillSymbol, LabelClass, Search, LayerSearchSource) {&lt;BR /&gt; var map = new Map({ basemap: "satellite" });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var searchWidget = new Search({&lt;BR /&gt; view: view,&lt;BR /&gt; allPlaceholder: "Search",&lt;BR /&gt; locationEnabled: false,&lt;BR /&gt; includeDefaultSources: false,&lt;BR /&gt; enableSearchingAll: false,&lt;BR /&gt; sources: [&lt;BR /&gt; {&lt;BR /&gt; layer: places_Layer,&lt;BR /&gt; searchFields: ["placename", "category"],&lt;BR /&gt; suggestionTemplate: "{&lt;SPAN&gt;place&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;}, {category}",&lt;BR /&gt; exactMatch: false,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; name: "Places",&lt;BR /&gt; placeholder: "example: New York",&lt;BR /&gt; zoomScale: 250000&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; layer: clinics_Layer,&lt;BR /&gt; searchFields: ["name", "capability"],&lt;BR /&gt; suggestionTemplate: "{name}, {capability}",&lt;BR /&gt; exactMatch: false,&lt;BR /&gt; outFields: ["*"],&lt;BR /&gt; name: "Clinics",&lt;BR /&gt; placeholder: "example: Dental",&lt;BR /&gt; zoomScale: 250000&lt;BR /&gt; },&lt;BR /&gt; ],&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;view.ui.add(searchWidget, { position: "top-right", index: 0 });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247097#M22879</guid>
      <dc:creator>Shane_</dc:creator>
      <dc:date>2020-02-28T11:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247098#M22880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Seems like the zoomScale has not been working since 4.8. You would need to report this to esri tech support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 14:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247098#M22880</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-02-28T14:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247099#M22881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. Is there any event I can listen for/use to zoom to the selected feature? The popup is being displayed for the selected feature?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 15:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247099#M22881</guid>
      <dc:creator>Shane_</dc:creator>
      <dc:date>2020-02-28T15:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247100#M22882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sure use select result event:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#event-select-result" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#event-select-result"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#event-select-result&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use a setTimeout to make sure that the search widget is done with everything it does (some like 500 milliseconds should be good) then do you view.goTo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 15:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247100#M22882</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-02-28T15:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247101#M22883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, perfect...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// ZOOM TO FEATURE AFTER IT IS SELECTED&lt;BR /&gt; searchWidget.on("select-result", function (event) { view.goTo( { zoom: 12 } );&amp;nbsp;} );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 16:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247101#M22883</guid>
      <dc:creator>Shane_</dc:creator>
      <dc:date>2020-02-28T16:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget won't zoom??</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247102#M22884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi all,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I was able to reproduce the issue so I went ahead and logged a defect.&lt;/P&gt;&lt;UL style="background-color: #ffffff; border: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="border: 0px; font-weight: inherit; margin: 0.5ex 0px;"&gt;BUG-000129390: The ZoomScale property fails to set zoom scale for the selected search result from LayerSearchSource.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Apologies for the inconvenience!&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Lingtao&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Esri Support Services&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 20:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-won-t-zoom/m-p/247102#M22884</guid>
      <dc:creator>xlt208</dc:creator>
      <dc:date>2020-03-13T20:42:01Z</dc:date>
    </item>
  </channel>
</rss>

