<?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: SearchWidget ZoomScale in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searchwidget-zoomscale/m-p/187986#M17439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, thats exactly the work around that I was using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Lingtao Xie &amp;lt;geonet@esri.com&amp;gt; 13/03/20 16:35 &amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;               GeoNet, The Esri Community | GIS and Geospatial&lt;/P&gt;&lt;P&gt;Professional Community           Re: SearchWidget ZoomScale   reply from&lt;/P&gt;&lt;P&gt;Lingtao Xie in ArcGIS API for JavaScript - View the full discussion&lt;/P&gt;&lt;P&gt;   Hi Jeffrey,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I was able to reproduce the issue so I went ahead and logged a defect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BUG-000129390: The ZoomScale property fails to set zoom scale for the&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selected search result from LayerSearchSource.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A workaround would be to set view.scale in a select-result event. For&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;searchWidget.on("select-result", function () {&lt;/P&gt;&lt;P&gt;                        view.goTo({&lt;/P&gt;&lt;P&gt;                            scale: 500000&lt;/P&gt;&lt;P&gt;                        });&lt;/P&gt;&lt;P&gt;                    });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Apologies for the inconvenience!&lt;/P&gt;&lt;P&gt;Lingtao&lt;/P&gt;&lt;P&gt;Esri Support Services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     Reply to this message by replying to this email, or go to the&lt;/P&gt;&lt;P&gt;message on GeoNet, The Esri Community | GIS and Geospatial Professional&lt;/P&gt;&lt;P&gt;Community             Start a new discussion in ArcGIS API for&lt;/P&gt;&lt;P&gt;JavaScript by email or at GeoNet, The Esri Community | GIS and&lt;/P&gt;&lt;P&gt;Geospatial Professional Community             Following Re: SearchWidget&lt;/P&gt;&lt;P&gt;ZoomScale in these streams:      Inbox                                  &lt;/P&gt;&lt;P&gt;                           This email was sent by GeoNet, The Esri&lt;/P&gt;&lt;P&gt;Community | GIS and Geospatial Professional Community because you are a&lt;/P&gt;&lt;P&gt;registered user.&lt;/P&gt;&lt;P&gt;                         You may unsubscribe instantly from GeoNet, The&lt;/P&gt;&lt;P&gt;Esri Community | GIS and Geospatial Professional Community, or adjust&lt;/P&gt;&lt;P&gt;email frequency in your email preferences                     &lt;/P&gt;&lt;P&gt;                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avant d'imprimer, pensez à l'environnement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Mar 2020 18:26:14 GMT</pubDate>
    <dc:creator>JeffreyLafleur1</dc:creator>
    <dc:date>2020-03-14T18:26:14Z</dc:date>
    <item>
      <title>SearchWidget ZoomScale</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searchwidget-zoomscale/m-p/187984#M17437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I built my first apps using ver. 4.6 / 4.7 / 4.8 of the JS API.&lt;/P&gt;&lt;P&gt;I was using ZoomScale in the Search Widget to automatically zoom to the search result at a pre-defined zoom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I switch my code to ver. 4.9 or 4.10, the ZoomScale isn't working.&lt;/P&gt;&lt;P&gt;Is there a new way to accomplish the same result.&lt;/P&gt;&lt;P&gt;I only want to zoom to a defined scale folowing a search on a selected result.&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;Jeff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/436057_2019-01-29_14h52_10.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 20:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searchwidget-zoomscale/m-p/187984#M17437</guid>
      <dc:creator>JeffreyLafleur1</dc:creator>
      <dc:date>2019-01-29T20:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: SearchWidget ZoomScale</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searchwidget-zoomscale/m-p/187985#M17438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to reproduce the issue so I went ahead and logged a defect.&lt;/P&gt;&lt;UL&gt;&lt;LI&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&gt;&lt;/P&gt;&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;Just in case you were still experiencing this issue, a workaround would be to set view.scale in a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#event-select-result"&gt;select-result&lt;/A&gt; event. For example:&lt;/P&gt;&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV style="padding-left: 120px;"&gt;&lt;SPAN style="color: #001080;"&gt;searchWidget&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #795e26;"&gt;on&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"select-result"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;()&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 120px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #001080;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #795e26;"&gt;goTo&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 120px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #001080;"&gt;scale:&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #098658;"&gt;500000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 120px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="padding-left: 120px;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P style="color: #0e101a; background: transparent; margin-top: 0pt; margin-bottom: 0pt;"&gt;&lt;/P&gt;&lt;P&gt;Apologies for the inconvenience!&lt;/P&gt;&lt;P&gt;Lingtao&lt;/P&gt;&lt;P&gt;Esri Support Services&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 20:34:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searchwidget-zoomscale/m-p/187985#M17438</guid>
      <dc:creator>xlt208</dc:creator>
      <dc:date>2020-03-13T20:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: SearchWidget ZoomScale</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searchwidget-zoomscale/m-p/187986#M17439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, thats exactly the work around that I was using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Lingtao Xie &amp;lt;geonet@esri.com&amp;gt; 13/03/20 16:35 &amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;               GeoNet, The Esri Community | GIS and Geospatial&lt;/P&gt;&lt;P&gt;Professional Community           Re: SearchWidget ZoomScale   reply from&lt;/P&gt;&lt;P&gt;Lingtao Xie in ArcGIS API for JavaScript - View the full discussion&lt;/P&gt;&lt;P&gt;   Hi Jeffrey,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I was able to reproduce the issue so I went ahead and logged a defect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BUG-000129390: The ZoomScale property fails to set zoom scale for the&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selected search result from LayerSearchSource.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A workaround would be to set view.scale in a select-result event. For&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;searchWidget.on("select-result", function () {&lt;/P&gt;&lt;P&gt;                        view.goTo({&lt;/P&gt;&lt;P&gt;                            scale: 500000&lt;/P&gt;&lt;P&gt;                        });&lt;/P&gt;&lt;P&gt;                    });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Apologies for the inconvenience!&lt;/P&gt;&lt;P&gt;Lingtao&lt;/P&gt;&lt;P&gt;Esri Support Services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     Reply to this message by replying to this email, or go to the&lt;/P&gt;&lt;P&gt;message on GeoNet, The Esri Community | GIS and Geospatial Professional&lt;/P&gt;&lt;P&gt;Community             Start a new discussion in ArcGIS API for&lt;/P&gt;&lt;P&gt;JavaScript by email or at GeoNet, The Esri Community | GIS and&lt;/P&gt;&lt;P&gt;Geospatial Professional Community             Following Re: SearchWidget&lt;/P&gt;&lt;P&gt;ZoomScale in these streams:      Inbox                                  &lt;/P&gt;&lt;P&gt;                           This email was sent by GeoNet, The Esri&lt;/P&gt;&lt;P&gt;Community | GIS and Geospatial Professional Community because you are a&lt;/P&gt;&lt;P&gt;registered user.&lt;/P&gt;&lt;P&gt;                         You may unsubscribe instantly from GeoNet, The&lt;/P&gt;&lt;P&gt;Esri Community | GIS and Geospatial Professional Community, or adjust&lt;/P&gt;&lt;P&gt;email frequency in your email preferences                     &lt;/P&gt;&lt;P&gt;                          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avant d'imprimer, pensez à l'environnement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2020 18:26:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searchwidget-zoomscale/m-p/187986#M17439</guid>
      <dc:creator>JeffreyLafleur1</dc:creator>
      <dc:date>2020-03-14T18:26:14Z</dc:date>
    </item>
  </channel>
</rss>

