<?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 Detect if layer contains any data? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detect-if-layer-contains-any-data/m-p/479105#M44525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone say how can I detect if layer contains any data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a list of layer checkboxes next to the map that user can activate/deactivate. The layers are retrieved from third-party map server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Layers are about distribution. I only want to show layers that contain any data about distribution (not all objects are present on all layers).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how I can do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Risto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 13:39:43 GMT</pubDate>
    <dc:creator>RistoAlt</dc:creator>
    <dc:date>2012-02-08T13:39:43Z</dc:date>
    <item>
      <title>Detect if layer contains any data?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detect-if-layer-contains-any-data/m-p/479105#M44525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone say how can I detect if layer contains any data?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a list of layer checkboxes next to the map that user can activate/deactivate. The layers are retrieved from third-party map server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Layers are about distribution. I only want to show layers that contain any data about distribution (not all objects are present on all layers).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how I can do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Risto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 13:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detect-if-layer-contains-any-data/m-p/479105#M44525</guid>
      <dc:creator>RistoAlt</dc:creator>
      <dc:date>2012-02-08T13:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Detect if layer contains any data?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detect-if-layer-contains-any-data/m-p/479106#M44526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/querytask.htm"&gt;queryTask's&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/querytask.htm#executeForIds"&gt;executeForIds&lt;/A&gt;&lt;SPAN&gt; method. If the query comes back with anything, your layer has data.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 16:04:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/detect-if-layer-contains-any-data/m-p/479106#M44526</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-02-08T16:04:37Z</dc:date>
    </item>
  </channel>
</rss>

