<?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: Loading KML with Tiled Map Service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326922#M30180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know and researched this information regarding the loading of KMLLayers. I have my KML rendering to the internal server with the esri/config code to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is hit or miss when it renders so I assumed it was the REST services causing this problem or my coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 13:48:27 GMT</pubDate>
    <dc:creator>jeremygoins</dc:creator>
    <dc:date>2015-07-29T13:48:27Z</dc:date>
    <item>
      <title>Loading KML with Tiled Map Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326917#M30175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to the ArcGIS API. I have experience with Google Earth API so please bare with me on this question as it might be simple. Below is my attached codepen I can't figure out why the KML will not show up when I use the Tiled Map service with adding the KML. I suspect that it is being placed behind the REST map, but I'm not entirely sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone point me in the right direction or provide some input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://codepen.io/anon/pen/mJQpmK" title="http://codepen.io/anon/pen/mJQpmK"&gt;A Pen by Captain Anonymous&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V/r&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 12:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326917#M30175</guid>
      <dc:creator>jeremygoins</dc:creator>
      <dc:date>2015-07-29T12:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML with Tiled Map Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326918#M30176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try setting your basemap in the map's constructor. That's one way to solve it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 12:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326918#M30176</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2015-07-29T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML with Tiled Map Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326919#M30177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I was incorrect... it's this bit of code that's preventing the KML from rendering:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kml.on("load", function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domStyle.set("loading", "display", "none");
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, you can still set-up the basemap in the map constructor as an alternative way to show the topo layer. If you are curious, here's how it would look:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map = new Map("map", { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "topo"
&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many ways to skin a cat in the ArcGIS JSAPI!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://codepen.io/anon/pen/NqEyOd" title="http://codepen.io/anon/pen/NqEyOd" rel="nofollow noopener noreferrer" target="_blank"&gt;A Pen by Captain Anonymous - Forked&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326919#M30177</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2021-12-11T15:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML with Tiled Map Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326920#M30178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I failed to mention I'm behind a firewall and need to utilize my ArcGIS REST server. I can see that the code wants to go to the services.arcgisonline.com REST server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 13:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326920#M30178</guid>
      <dc:creator>jeremygoins</dc:creator>
      <dc:date>2015-07-29T13:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML with Tiled Map Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326921#M30179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Straight from the KMLLayer docs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG style="font-weight: bold; color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; text-align: start; text-indent: 0px;"&gt;Note&lt;/STRONG&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;: The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz must be publicly accessible on the internet. If your kml/kmz files are behind the firewall you will need to set the&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; color: #4d4d4d; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background: transparent;"&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/inside_defaults.html" style="color: #00629b;"&gt;esriConfig.defaults.kmlService&lt;/A&gt;&lt;/CODE&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;to your own utility service. (Requires Portal for ArcGIS).&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 13:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326921#M30179</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-07-29T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML with Tiled Map Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326922#M30180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know and researched this information regarding the loading of KMLLayers. I have my KML rendering to the internal server with the esri/config code to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is hit or miss when it renders so I assumed it was the REST services causing this problem or my coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 13:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326922#M30180</guid>
      <dc:creator>jeremygoins</dc:creator>
      <dc:date>2015-07-29T13:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loading KML with Tiled Map Service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326923#M30181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank removined the on load piece resolved this issue and I can still use my REST services. Much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 13:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/loading-kml-with-tiled-map-service/m-p/326923#M30181</guid>
      <dc:creator>jeremygoins</dc:creator>
      <dc:date>2015-07-29T13:51:24Z</dc:date>
    </item>
  </channel>
</rss>

