<?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 v1.5 map.onLoad Event not firing using all dynamic layers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/v1-5-map-onload-event-not-firing-using-all-dynamic/m-p/725788#M67374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app that will 90% of the time be using a tiled base mapping service, but there is also an option to use all dynamic services.&amp;nbsp; Will testing this I have found that the map.onLoad event does not fire when only adding dynamic service layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I always thought that it would fire after the first layer has been added?&amp;nbsp; Does it only work with tiled services? What can I use instead for dynamic if onLoad does not fire?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Nov 2010 12:15:27 GMT</pubDate>
    <dc:creator>AndrewJones</dc:creator>
    <dc:date>2010-11-02T12:15:27Z</dc:date>
    <item>
      <title>v1.5 map.onLoad Event not firing using all dynamic layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/v1-5-map-onload-event-not-firing-using-all-dynamic/m-p/725788#M67374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app that will 90% of the time be using a tiled base mapping service, but there is also an option to use all dynamic services.&amp;nbsp; Will testing this I have found that the map.onLoad event does not fire when only adding dynamic service layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I always thought that it would fire after the first layer has been added?&amp;nbsp; Does it only work with tiled services? What can I use instead for dynamic if onLoad does not fire?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 12:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/v1-5-map-onload-event-not-firing-using-all-dynamic/m-p/725788#M67374</guid>
      <dc:creator>AndrewJones</dc:creator>
      <dc:date>2010-11-02T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: v1.5 map.onLoad Event not firing using all dynamic layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/v1-5-map-onload-event-not-firing-using-all-dynamic/m-p/725789#M67375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like the onLoad event "Fires when the first or base layer has been successfully added to the map." So the first layer of any kind should trigger it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could add a tiled layer as a base layer and turn it off. Or you could use the layer onLoad event to check to check a Boolean variable and trigger the map onLoad event if it is false. Then set the Boolean variable to true in the map onLoad event to prevent it from running again. If the API starts behaving again you don't end up running the map onLoad twice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 13:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/v1-5-map-onload-event-not-firing-using-all-dynamic/m-p/725789#M67375</guid>
      <dc:creator>TimRourke</dc:creator>
      <dc:date>2010-11-02T13:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: v1.5 map.onLoad Event not firing using all dynamic layers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/v1-5-map-onload-event-not-firing-using-all-dynamic/m-p/725790#M67376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, the first layer does not fire the event.&amp;nbsp; I have a number of dojo connects setup before the layers start getting added and it works with tiled layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, your idea of simply calling map.onLoad myself has solved my issue as I will know if they are all dynamic anyway before hand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the second opinion!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2010 13:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/v1-5-map-onload-event-not-firing-using-all-dynamic/m-p/725790#M67376</guid>
      <dc:creator>AndrewJones</dc:creator>
      <dc:date>2010-11-02T13:27:35Z</dc:date>
    </item>
  </channel>
</rss>

