<?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 Zoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-zoom/m-p/167722#M15543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/40800"&gt;jay kapalczynski&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll be honest it has been a while since I have written js. Could you use &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#getzoom" title="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#getzoom"&gt;Map | API Reference | ArcGIS API for JavaScript 3.31&lt;/A&gt;&amp;nbsp; and just pass it the current maps zoom scale?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure someone will have a much better answer but this could be a quick workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;EM&gt;If this answer was helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2020 01:21:48 GMT</pubDate>
    <dc:creator>BenTurrell</dc:creator>
    <dc:date>2020-03-23T01:21:48Z</dc:date>
    <item>
      <title>Search Widget Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-zoom/m-p/167721#M15542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the search widget and successfully...&lt;/P&gt;&lt;P&gt;I can set the scale after a result is returned as such.&lt;/P&gt;&lt;P&gt;If I do not set the scale as seen below it still zooms to the result of the search widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to disable the zoom completely....is there a way to do this...I have not seen anything in the documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;        searchWidget.on("select-result", function(event) {
            view.goTo({
                scale: 3000000
            });
        });&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-zoom/m-p/167721#M15542</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-11T08:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-zoom/m-p/167722#M15543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/40800"&gt;jay kapalczynski&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll be honest it has been a while since I have written js. Could you use &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#getzoom" title="https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#getzoom"&gt;Map | API Reference | ArcGIS API for JavaScript 3.31&lt;/A&gt;&amp;nbsp; and just pass it the current maps zoom scale?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure someone will have a much better answer but this could be a quick workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;EM&gt;If this answer was helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 01:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-zoom/m-p/167722#M15543</guid>
      <dc:creator>BenTurrell</dc:creator>
      <dc:date>2020-03-23T01:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget Zoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-zoom/m-p/167723#M15544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#goToOverride"&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;goToOverride&lt;/SPAN&gt; property&lt;/A&gt; on the Search widget. This allows you to override the goTo() method invoked when a&amp;nbsp;result is selected.&amp;nbsp;Hope this helps!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 19:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-zoom/m-p/167723#M15544</guid>
      <dc:creator>AnneFitz</dc:creator>
      <dc:date>2020-03-23T19:33:54Z</dc:date>
    </item>
  </channel>
</rss>

