<?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 Any Map or View Teardown Events Coming In 4.x API? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-map-or-view-teardown-events-coming-in-4-x-api/m-p/724380#M67239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the past (3.x API) I relied on the map&amp;nbsp;&lt;STRONG&gt;before-unload&lt;/STRONG&gt; event to perform cleanup, capture state information, etc. &amp;nbsp;For example, detaching listeners and other event handles, capturing the last basemap in use, capturing the last zoom/center, etc.&amp;nbsp;&lt;STRONG&gt;before-unload&lt;/STRONG&gt; worked very well for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is a similar event on the horizon or envisioned for the Map (or Views) in 4.x? &amp;nbsp;I find myself struggling to find a convenient place to perform these activity that doesn't result in callbacks firing far more frequently than the need to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 16:08:14 GMT</pubDate>
    <dc:creator>NealFerguson</dc:creator>
    <dc:date>2017-07-10T16:08:14Z</dc:date>
    <item>
      <title>Any Map or View Teardown Events Coming In 4.x API?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-map-or-view-teardown-events-coming-in-4-x-api/m-p/724380#M67239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the past (3.x API) I relied on the map&amp;nbsp;&lt;STRONG&gt;before-unload&lt;/STRONG&gt; event to perform cleanup, capture state information, etc. &amp;nbsp;For example, detaching listeners and other event handles, capturing the last basemap in use, capturing the last zoom/center, etc.&amp;nbsp;&lt;STRONG&gt;before-unload&lt;/STRONG&gt; worked very well for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is a similar event on the horizon or envisioned for the Map (or Views) in 4.x? &amp;nbsp;I find myself struggling to find a convenient place to perform these activity that doesn't result in callbacks firing far more frequently than the need to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/any-map-or-view-teardown-events-coming-in-4-x-api/m-p/724380#M67239</guid>
      <dc:creator>NealFerguson</dc:creator>
      <dc:date>2017-07-10T16:08:14Z</dc:date>
    </item>
  </channel>
</rss>

