<?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: Filtering Layers From KML in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filtering-layers-from-kml/m-p/497810#M46282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried this but you could loop through the &lt;A href="https://developers.arcgis.com/javascript/jsapi/kmllayer-amd.html#featureinfos" rel="nofollow noopener noreferrer" target="_blank"&gt;featureInfos&lt;/A&gt; array and only process the Polygon type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var kmlLayer = new KMLLayer( ... );
&amp;nbsp; var featureInfos = kmlLayer.folders[0].featureInfos;
&amp;nbsp; array.forEach(featureInfos,function(info){
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Test if info.type == &lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;Polygon&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // if it is a polygon do something with the feature - like add it to a graphics layer
&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 21:52:48 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2021-12-11T21:52:48Z</dc:date>
    <item>
      <title>Filtering Layers From KML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filtering-layers-from-kml/m-p/497809#M46281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have looked but couldn't find anything.&amp;nbsp; Is it possible to plot only specific layers of a KML.&amp;nbsp; Specifically, I want to plot all polygons, but no placemarks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2015 10:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filtering-layers-from-kml/m-p/497809#M46281</guid>
      <dc:creator>CharlesGant</dc:creator>
      <dc:date>2015-05-02T10:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Layers From KML</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filtering-layers-from-kml/m-p/497810#M46282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried this but you could loop through the &lt;A href="https://developers.arcgis.com/javascript/jsapi/kmllayer-amd.html#featureinfos" rel="nofollow noopener noreferrer" target="_blank"&gt;featureInfos&lt;/A&gt; array and only process the Polygon type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var kmlLayer = new KMLLayer( ... );
&amp;nbsp; var featureInfos = kmlLayer.folders[0].featureInfos;
&amp;nbsp; array.forEach(featureInfos,function(info){
&amp;nbsp;&amp;nbsp;&amp;nbsp; // Test if info.type == &lt;SPAN style="color: #000000; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif;"&gt;Polygon&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // if it is a polygon do something with the feature - like add it to a graphics layer
&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/filtering-layers-from-kml/m-p/497810#M46282</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2021-12-11T21:52:48Z</dc:date>
    </item>
  </channel>
</rss>

