<?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: Map events handling in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401606#M36972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the event is already fired when you do your connect, then the connected function will not fire. This can create race conditions. An easy way to handled race conditions for on time function calls is to use dojo.Deferred instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 18:04:41 GMT</pubDate>
    <dc:creator>BrettLord-Castillo</dc:creator>
    <dc:date>2010-05-28T18:04:41Z</dc:date>
    <item>
      <title>Map events handling</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401603#M36969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am bulding my application, and puting tools I need one by one. But now I have faced one problem with map events. As I add event handling functions in init function, some of them seems are not working properly. Now I can't make fire event onLayerAdd. I am testing it using line from reference: dojo.connect(map, "onLayerAdd", function() { console.log("Layer added"); });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Working only with onLoad events I have noticed it depends order (my guess is it helped), so may be there is some rules of how to make correct order of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If any one has an idea, please response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ricardas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 06:59:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401603#M36969</guid>
      <dc:creator>RicardasVaitkus</dc:creator>
      <dc:date>2010-05-28T06:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Map events handling</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401604#M36970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;can you post a more complete code sample of what you're trying to do?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 11:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401604#M36970</guid>
      <dc:creator>AdamPfister</dc:creator>
      <dc:date>2010-05-28T11:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Map events handling</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401605#M36971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When are you running that dojo.connect statement?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree with Adam, posting your current code would be helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 15:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401605#M36971</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-05-28T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Map events handling</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401606#M36972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the event is already fired when you do your connect, then the connected function will not fire. This can create race conditions. An easy way to handled race conditions for on time function calls is to use dojo.Deferred instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 18:04:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-events-handling/m-p/401606#M36972</guid>
      <dc:creator>BrettLord-Castillo</dc:creator>
      <dc:date>2010-05-28T18:04:41Z</dc:date>
    </item>
  </channel>
</rss>

