<?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: Example of checking layer validity before adding to map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/example-of-checking-layer-validity-before-adding/m-p/631155#M58893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were you looking for something like these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/564614"&gt;Re: connect to on (layer-add-result)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/528093"&gt;Re: layers-add-result event not triggered if error encountered loading a layer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Dec 2015 18:42:28 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2015-12-18T18:42:28Z</dc:date>
    <item>
      <title>Example of checking layer validity before adding to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/example-of-checking-layer-validity-before-adding/m-p/631154#M58892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I'm having problems with a map that has many layers.&amp;nbsp; I'm getting one of those obscure errors that doesn't help you one bit.&amp;nbsp; I believe there is an issue with one of my layers, but I've combed through the rest end point and my layer constructors and everything looks OK.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I've seen this before - someone posted a chuck of code that would check that the layer was valid before adding, so it was easier to troubleshoot which layer has the problem.&amp;nbsp; It gave you some feedback in the console that told you if there was a problem or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keywords like map, layer, add are all so generic that searching on these words doesn't help.&amp;nbsp; Does anyone remember writing or seeing this code so I could incorporate it into my project?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 18:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/example-of-checking-layer-validity-before-adding/m-p/631154#M58892</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-12-18T18:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Example of checking layer validity before adding to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/example-of-checking-layer-validity-before-adding/m-p/631155#M58893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Were you looking for something like these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/564614"&gt;Re: connect to on (layer-add-result)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/528093"&gt;Re: layers-add-result event not triggered if error encountered loading a layer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 18:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/example-of-checking-layer-validity-before-adding/m-p/631155#M58893</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-12-18T18:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Example of checking layer validity before adding to map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/example-of-checking-layer-validity-before-adding/m-p/631156#M58894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those are the ones!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one gave me the error, but didn't tell me which layer is was from (and I have 11 layers!).&amp;nbsp; The 2nd one told me both the error and the layer it came from. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 19:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/example-of-checking-layer-validity-before-adding/m-p/631156#M58894</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-12-18T19:08:00Z</dc:date>
    </item>
  </channel>
</rss>

