<?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: Removing  KML Layers from the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703105#M65422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your response makes sense. I got myself in trouble as I have a custom map widget that inherits from the original map. I had overriden the AddLayer and Addlayers to add custom functionality for tracking layers for use with in a Custom TOC. Your post helped me to understand I need to go back revise my means of tracking added layers in the TOC. Thanks for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 17:33:54 GMT</pubDate>
    <dc:creator>JamesVillanueva</dc:creator>
    <dc:date>2012-04-12T17:33:54Z</dc:date>
    <item>
      <title>Removing  KML Layers from the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703102#M65419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm stumped on this one. I add a KML Layer to the map: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.climatehotmap.org/kml/chm.kml" rel="nofollow" target="_blank"&gt;http://www.climatehotmap.org/kml/chm.kml&lt;/A&gt;&lt;SPAN&gt; and it gets added as many different layers. After this occurs, I can not figure out how to remove them all from the map. Normal things like removing them one at a time or calling removeAllLayers doesn't seem to work. Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 16:36:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703102#M65419</guid>
      <dc:creator>JamesVillanueva</dc:creator>
      <dc:date>2012-04-12T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing  KML Layers from the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703103#M65420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't had much success with .removeAllLayers but I've used the .hide() instead to remove layers from being displayed on a map.&amp;nbsp; I add and hide layers all the time this way.&amp;nbsp; I took your kml link and was able to add it to the map, and then hide it from the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703103#M65420</guid>
      <dc:creator>BetsySchenck-Gardner</dc:creator>
      <dc:date>2012-04-12T17:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Removing  KML Layers from the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703104#M65421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're correct in that the KML uses several layers to display features from a KML file. But you can still treat a &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/kmllayer.htm" rel="nofollow" target="_blank"&gt;KMLLayer&lt;/A&gt;&lt;SPAN&gt; as a regular layer meaning you can pass it to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#removeLayer" rel="nofollow" target="_blank"&gt;map.removeLayer&lt;/A&gt;&lt;SPAN&gt; and all associated layers will be removed from the map. Here's an example:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://jsfiddle.net/Zd8ne/" rel="nofollow" target="_blank"&gt;http://jsfiddle.net/Zd8ne/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:10:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703104#M65421</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-04-12T17:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Removing  KML Layers from the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703105#M65422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Derek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your response makes sense. I got myself in trouble as I have a custom map widget that inherits from the original map. I had overriden the AddLayer and Addlayers to add custom functionality for tracking layers for use with in a Custom TOC. Your post helped me to understand I need to go back revise my means of tracking added layers in the TOC. Thanks for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 17:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/removing-nbsp-kml-layers-from-the-map/m-p/703105#M65422</guid>
      <dc:creator>JamesVillanueva</dc:creator>
      <dc:date>2012-04-12T17:33:54Z</dc:date>
    </item>
  </channel>
</rss>

