<?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: What is required for the arcgisMap arcgisViewReadyChange event to be fired? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-required-for-the-arcgismap/m-p/1620334#M87221</link>
    <description>&lt;P&gt;I could not do anything with the item-id and setting the basemap property of the arcgisMap control did nothing, but creating a new Map object and setting its basemap property and then setting the arcgisMap controls map property with the new map object did work.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2025 06:47:10 GMT</pubDate>
    <dc:creator>Flookfinders</dc:creator>
    <dc:date>2025-06-03T06:47:10Z</dc:date>
    <item>
      <title>What is required for the arcgisMap arcgisViewReadyChange event to be fired?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-required-for-the-arcgismap/m-p/1619946#M87219</link>
      <description>&lt;P&gt;I have a React application using v4.32.10 and in it I have created a control using the arcgisMap control. I am using this control in multiple places once in a stand alone dialog and then twice in a wizard dialog. For the stand alone dialog the argisViewReadyChange event is fired as expected and I can then setup the other required events i.e. to handle events from the sketch control.&amp;nbsp; For the 2 instances being used in the document they are used on consecutive pages within the wizard. When navigating the wizard in a forward direction for the first map the&amp;nbsp;argisViewReadyChange event does not fire, but when moving forward to the second instance of the map control it is fired correctly. If I then used the back navigation in the wizard to return to the first instance of the map control then the event is correctly fired.&lt;BR /&gt;&lt;BR /&gt;As the code is exactly the same in both directions I am at a loss why the event is not being fired in the first instance when moving forward through the wizard. So, what I would like to know is what conditions need to be met for this event to be fired, so I can determine what is going on.&amp;nbsp; I have determined that the updating property of the arcgisMap is being set to true and then false when I am adding in the layers that need to be displayed in the map and they are also being displayed correctly, it is just that the&amp;nbsp;argisViewReadyChange is not being fired so I am unable to handle the sketch events which are being sent with that event to ensure I have a reference to the sketch control.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 06:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-required-for-the-arcgismap/m-p/1619946#M87219</guid>
      <dc:creator>Flookfinders</dc:creator>
      <dc:date>2025-06-02T06:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: What is required for the arcgisMap arcgisViewReadyChange event to be fired?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-required-for-the-arcgismap/m-p/1620090#M87220</link>
      <description>&lt;P&gt;For reference, the&amp;nbsp;&lt;SPAN&gt;argisViewReadyChange event will fire when one of three things happens.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;The `item-id` is updated&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The `map` property is replaced&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The `basemap` property is replaced&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Without looking at how state/page loads are being handled in a React application, tough to tell when things are being updated and re-rendered. This event is driven by the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#ready" target="_blank" rel="noopener"&gt;View.ready&lt;/A&gt; property on views. If you want to maintain the state of the map component in a SPA type app, you can enable the &lt;A href="https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#autoDestroyDisabled" target="_blank" rel="noopener"&gt;autoDestroyDisabled&lt;/A&gt; property so that the component will not destroy itself if it is removed and added back to the page.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 15:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-required-for-the-arcgismap/m-p/1620090#M87220</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-06-02T15:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is required for the arcgisMap arcgisViewReadyChange event to be fired?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-required-for-the-arcgismap/m-p/1620334#M87221</link>
      <description>&lt;P&gt;I could not do anything with the item-id and setting the basemap property of the arcgisMap control did nothing, but creating a new Map object and setting its basemap property and then setting the arcgisMap controls map property with the new map object did work.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 06:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-required-for-the-arcgismap/m-p/1620334#M87221</guid>
      <dc:creator>Flookfinders</dc:creator>
      <dc:date>2025-06-03T06:47:10Z</dc:date>
    </item>
  </channel>
</rss>

