<?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: WebTiledLayer never fires a load event!!! in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webtiledlayer-never-fires-a-load-event/m-p/748318#M69232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;web tiled doesn't do an async call for metadata like AGS tiled and dynamic so load happens when you do new WebTiledLayer()&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case my layer loading class assumed 'load' fired on layer added to map. Because web tiled layer fires load immediately on creation, web tiled layer was never getting passed on to the layer control and event creating methods. Web tiled layer can be passed on immediately without issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Derek!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 15:30:21 GMT</pubDate>
    <dc:creator>BenFousek</dc:creator>
    <dc:date>2014-03-21T15:30:21Z</dc:date>
    <item>
      <title>WebTiledLayer never fires a load event!!!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webtiledlayer-never-fires-a-load-event/m-p/748317#M69231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How is this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inherits from esri/layers/TiledMapServiceLayer...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layer object has Load and onLoad functions...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can see layer object 'loaded = false' --&amp;gt; 'loaded = true' when adding layer from command line...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layer object is an emitter...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/btfou/FQKPF/9/" rel="nofollow" target="_blank"&gt;fiddle&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I call ons and connects I know don't work just to check.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 01:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webtiledlayer-never-fires-a-load-event/m-p/748317#M69231</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2014-03-11T01:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: WebTiledLayer never fires a load event!!!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webtiledlayer-never-fires-a-load-event/m-p/748318#M69232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;web tiled doesn't do an async call for metadata like AGS tiled and dynamic so load happens when you do new WebTiledLayer()&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case my layer loading class assumed 'load' fired on layer added to map. Because web tiled layer fires load immediately on creation, web tiled layer was never getting passed on to the layer control and event creating methods. Web tiled layer can be passed on immediately without issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Derek!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 15:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webtiledlayer-never-fires-a-load-event/m-p/748318#M69232</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2014-03-21T15:30:21Z</dc:date>
    </item>
  </channel>
</rss>

