<?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: LayerList Widget Not Releasing Layer Context in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-widget-not-releasing-layer-context/m-p/1515493#M85212</link>
    <description>&lt;P&gt;Thanks for reporting this here&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618427"&gt;@FlockSafety&lt;/a&gt;&amp;nbsp;, this is not a know issue.&amp;nbsp; Could you please provide a reproducible test case with a codepen or some other online sandbox?&lt;/P&gt;&lt;P&gt;You also might need to call &lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#destroy" target="_self"&gt;LayerList.destroy()&lt;/A&gt;, it's not specifically mentioned above.&lt;/P&gt;&lt;P&gt;It also might be best to work with tech support on this one so they can assign it an official bug number.&amp;nbsp;&lt;A href="https://support.esri.com/en-us/contact" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/contact&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2024 14:28:26 GMT</pubDate>
    <dc:creator>Sage_Wall</dc:creator>
    <dc:date>2024-08-06T14:28:26Z</dc:date>
    <item>
      <title>LayerList Widget Not Releasing Layer Context</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-widget-not-releasing-layer-context/m-p/1515470#M85211</link>
      <description>&lt;P&gt;Hello, I'm working in an app where we have a primary map on the page and a secondary map that is part of a popup. After repeatedly opening and closing the secondary map, eventually the primary map goes blank with an console warning "WebGL context lost".&lt;/P&gt;&lt;P&gt;After some troubleshooting, I learned this was causing by not properly calling the map.destory() and mapView.destroy() methods for garbage collection. However, I noticed that this issue persisted after implementing these methods ONLY if I included the LayerList widget in my maps.&lt;/P&gt;&lt;P&gt;It seems that the LayerList widget is not properly disposing of its layer information and/or webGL contexts to VectorLayers. Our team has a custom layer list implementation that does not encounter this issue.&lt;/P&gt;&lt;P&gt;I wanted to see if the LayerList not properly performing garbage collection is a known issue, or if this is something that needs to be raised to the team.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 13:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-widget-not-releasing-layer-context/m-p/1515470#M85211</guid>
      <dc:creator>FlockSafety</dc:creator>
      <dc:date>2024-08-06T13:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: LayerList Widget Not Releasing Layer Context</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-widget-not-releasing-layer-context/m-p/1515493#M85212</link>
      <description>&lt;P&gt;Thanks for reporting this here&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618427"&gt;@FlockSafety&lt;/a&gt;&amp;nbsp;, this is not a know issue.&amp;nbsp; Could you please provide a reproducible test case with a codepen or some other online sandbox?&lt;/P&gt;&lt;P&gt;You also might need to call &lt;A href="https://next.sites.afd.arcgis.com/javascript/latest/api-reference/esri-widgets-LayerList.html#destroy" target="_self"&gt;LayerList.destroy()&lt;/A&gt;, it's not specifically mentioned above.&lt;/P&gt;&lt;P&gt;It also might be best to work with tech support on this one so they can assign it an official bug number.&amp;nbsp;&lt;A href="https://support.esri.com/en-us/contact" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 14:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/layerlist-widget-not-releasing-layer-context/m-p/1515493#M85212</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-08-06T14:28:26Z</dc:date>
    </item>
  </channel>
</rss>

