<?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: &amp;quot;Zoom-to&amp;quot; button on Popup hung after switch to a different feature layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-zoom-to-quot-button-on-popup-hung-after/m-p/598895#M56006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured out what was the problem - every time I changed the feature layer, a new map is created. That was the issue. "Zoom to" on the popup window is working now. I got some hints from a Rice Kinder dashboard page. Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2020 18:59:15 GMT</pubDate>
    <dc:creator>Lu-chiaChuang</dc:creator>
    <dc:date>2020-07-24T18:59:15Z</dc:date>
    <item>
      <title>"Zoom-to" button on Popup hung after switch to a different feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-zoom-to-quot-button-on-popup-hung-after/m-p/598894#M56005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue: "Zoom-to" button on Popup hung after switch to a different feature layer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a lightweight map viewer prototype which is configurable through a XML file. The map viewer uses HTML multi-level Select to switch between different feature layers. The XML file includes feature layer information, URLs, as well as popup contents. The main goal is to allow non-GIS web designers to embed this map viewer on&amp;nbsp;their webpages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, most functions seem to work on the prototype. There is one big issue - "Zoom-to" button on Popup hung after I switch to a different feature layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is on CodePen (&lt;A href="https://codepen.io/ohiochuang/pen/OJMEWXr"&gt;https://codepen.io/ohiochuang/pen/OJMEWXr&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how&amp;nbsp;to reproduce the problem.&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;Select a category, and select an indicator. A feature layer should show up.&lt;/LI&gt;&lt;LI&gt;Click a polygon on the layer. A popup should show up.&lt;/LI&gt;&lt;LI&gt;Click the "Zoom-to" button on the popup. The map will zoom into the selected area.&lt;/LI&gt;&lt;LI&gt;Select a different indicator. A different feature layer should show up.&lt;/LI&gt;&lt;LI&gt;Click a polygon on the new layer. A popup should show up. But this time, the "Zoom-to" button is spinning and hung.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;My guess is the viewer get confused about the map extents of the second feature layer. I'm not really sure what to do. Any suggestion will be greatly appreciated. Thank you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Luke&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 01:10:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-zoom-to-quot-button-on-popup-hung-after/m-p/598894#M56005</guid>
      <dc:creator>Lu-chiaChuang</dc:creator>
      <dc:date>2020-07-22T01:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: "Zoom-to" button on Popup hung after switch to a different feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-zoom-to-quot-button-on-popup-hung-after/m-p/598895#M56006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured out what was the problem - every time I changed the feature layer, a new map is created. That was the issue. "Zoom to" on the popup window is working now. I got some hints from a Rice Kinder dashboard page. Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 18:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-zoom-to-quot-button-on-popup-hung-after/m-p/598895#M56006</guid>
      <dc:creator>Lu-chiaChuang</dc:creator>
      <dc:date>2020-07-24T18:59:15Z</dc:date>
    </item>
  </channel>
</rss>

