<?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 Select Features from Invisible Layer and Zoom To Them in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/select-features-from-invisible-layer-and-zoom-to/m-p/1140947#M21899</link>
    <description>&lt;P&gt;I'm running into some issues trying to customize the Search widget.&amp;nbsp; The use case is as follows.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Refresh the app and open it to the initial extent.&lt;/LI&gt;&lt;LI&gt;Have layers that are not visible at the initial extent.&lt;/LI&gt;&lt;LI&gt;Select features from the invisible layers.&lt;/LI&gt;&lt;LI&gt;Zoom to the selected features.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It appears that what is happening is that when you zoom to the selected features, it causes the hidden layers to draw for the first time.&amp;nbsp; This calls resume on the layers, which appears to clear any selections on the layer if it is the first time resume has been called.&amp;nbsp; This basically clears out the selection from step 3.&amp;nbsp; I found similar behavior in the Attribute Table widget.&amp;nbsp; If you double-click on a feature that is not visible, it will zoom to it.&amp;nbsp; If it is the first time that the given layer has been displayed, the zoom ends up clearing the selection.&amp;nbsp; You can see it in how the blue color in the row disappears.&amp;nbsp; If you double-click it again, the blue color stays.&amp;nbsp; The issue is the same with my Search widget.&amp;nbsp; It is only an issue the first time the layer is displayed.&amp;nbsp; After that, it works correctly.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 21:36:07 GMT</pubDate>
    <dc:creator>NathanHeickLACSD</dc:creator>
    <dc:date>2022-02-04T21:36:07Z</dc:date>
    <item>
      <title>Select Features from Invisible Layer and Zoom To Them</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/select-features-from-invisible-layer-and-zoom-to/m-p/1140947#M21899</link>
      <description>&lt;P&gt;I'm running into some issues trying to customize the Search widget.&amp;nbsp; The use case is as follows.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Refresh the app and open it to the initial extent.&lt;/LI&gt;&lt;LI&gt;Have layers that are not visible at the initial extent.&lt;/LI&gt;&lt;LI&gt;Select features from the invisible layers.&lt;/LI&gt;&lt;LI&gt;Zoom to the selected features.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It appears that what is happening is that when you zoom to the selected features, it causes the hidden layers to draw for the first time.&amp;nbsp; This calls resume on the layers, which appears to clear any selections on the layer if it is the first time resume has been called.&amp;nbsp; This basically clears out the selection from step 3.&amp;nbsp; I found similar behavior in the Attribute Table widget.&amp;nbsp; If you double-click on a feature that is not visible, it will zoom to it.&amp;nbsp; If it is the first time that the given layer has been displayed, the zoom ends up clearing the selection.&amp;nbsp; You can see it in how the blue color in the row disappears.&amp;nbsp; If you double-click it again, the blue color stays.&amp;nbsp; The issue is the same with my Search widget.&amp;nbsp; It is only an issue the first time the layer is displayed.&amp;nbsp; After that, it works correctly.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 21:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/select-features-from-invisible-layer-and-zoom-to/m-p/1140947#M21899</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2022-02-04T21:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select Features from Invisible Layer and Zoom To Them</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/select-features-from-invisible-layer-and-zoom-to/m-p/1142474#M21914</link>
      <description>&lt;P&gt;Eventually, I decided that the best solution was just to host the JS 3.x API internally and remove the offending call to clearSelection.&amp;nbsp; That fixed the issue.&amp;nbsp; I still don't know why there is a need to clear a layer the first time it is drawn.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 00:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/select-features-from-invisible-layer-and-zoom-to/m-p/1142474#M21914</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2022-02-10T00:17:33Z</dc:date>
    </item>
  </channel>
</rss>

