<?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 How to dynamically clear the FeatureLayer.popupTemplate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-clear-the-featurelayer/m-p/1045957#M72457</link>
    <description>&lt;P&gt;In my App, I defined&amp;nbsp;&amp;nbsp; myFeatureLayer.popupTemplate;&lt;/P&gt;&lt;P&gt;When I clear the loaded FeatureLayer, the popup still remains on the map.&amp;nbsp; I have tried the 3 methods below but not effective:&lt;/P&gt;&lt;P&gt;myFeatureLayer.popupTemplate = null;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Not working&lt;/P&gt;&lt;P&gt;myFeatureLayer.popupTemplate.hide();&amp;nbsp;&amp;nbsp; // error No such a method&lt;/P&gt;&lt;P&gt;myFeatureLayer.popupTemplate.close();&amp;nbsp;&amp;nbsp; &amp;nbsp;// error No such a method&lt;/P&gt;&lt;P&gt;How can it be dynamically close the popup?&amp;nbsp; Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 15:34:02 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2021-04-12T15:34:02Z</dc:date>
    <item>
      <title>How to dynamically clear the FeatureLayer.popupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-clear-the-featurelayer/m-p/1045957#M72457</link>
      <description>&lt;P&gt;In my App, I defined&amp;nbsp;&amp;nbsp; myFeatureLayer.popupTemplate;&lt;/P&gt;&lt;P&gt;When I clear the loaded FeatureLayer, the popup still remains on the map.&amp;nbsp; I have tried the 3 methods below but not effective:&lt;/P&gt;&lt;P&gt;myFeatureLayer.popupTemplate = null;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Not working&lt;/P&gt;&lt;P&gt;myFeatureLayer.popupTemplate.hide();&amp;nbsp;&amp;nbsp; // error No such a method&lt;/P&gt;&lt;P&gt;myFeatureLayer.popupTemplate.close();&amp;nbsp;&amp;nbsp; &amp;nbsp;// error No such a method&lt;/P&gt;&lt;P&gt;How can it be dynamically close the popup?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 15:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-clear-the-featurelayer/m-p/1045957#M72457</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-04-12T15:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to dynamically clear the FeatureLayer.popupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-clear-the-featurelayer/m-p/1045975#M72461</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#close" target="_self"&gt;MapView.popup.close&lt;/A&gt; or&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#visible" target="_self"&gt; MapView.popup.visible&lt;/A&gt; properties to hide visible popups on the map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 16:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-dynamically-clear-the-featurelayer/m-p/1045975#M72461</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-04-12T16:00:19Z</dc:date>
    </item>
  </channel>
</rss>

