<?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: performance kml vs api in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204240#M18935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;That's not really comparing eggs with eggs - KML is a format for (geographic) data exchange, the JS API is a programming framework.&amp;nbsp; That's like asking which is better - comma separated text or Visual Basic?&amp;nbsp; (perhaps I have misunderstood your question?)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You can either purchase Esri's Portal product or write your own converter for translating KML to JSON for consumption by the API classes.&amp;nbsp; (or you could write your own KML layer class to consume the KML directly)&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2012 11:48:55 GMT</pubDate>
    <dc:creator>__Rich_</dc:creator>
    <dc:date>2012-11-12T11:48:55Z</dc:date>
    <item>
      <title>performance kml vs api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204239#M18934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&amp;nbsp; I'm working on showing a large number of&amp;nbsp; placemarks on a map in browser, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some questions: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. to show them faster, which way to go - KML files or api javascript ? performance matters. on google earth kml was better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. when using KML,&amp;nbsp; is there a way to avoid publicy visible urls?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 11:26:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204239#M18934</guid>
      <dc:creator>PetreCojocea</dc:creator>
      <dc:date>2012-11-12T11:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: performance kml vs api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204240#M18935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;That's not really comparing eggs with eggs - KML is a format for (geographic) data exchange, the JS API is a programming framework.&amp;nbsp; That's like asking which is better - comma separated text or Visual Basic?&amp;nbsp; (perhaps I have misunderstood your question?)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You can either purchase Esri's Portal product or write your own converter for translating KML to JSON for consumption by the API classes.&amp;nbsp; (or you could write your own KML layer class to consume the KML directly)&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 11:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204240#M18935</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-11-12T11:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: performance kml vs api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204241#M18936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;That's not really comparing eggs with eggs - KML is a format for (geographic) data exchange, the JS API is a programming framework.&amp;nbsp; That's like asking which is better - comma separated text or Visual Basic?&amp;nbsp; (perhaps I have misunderstood your question?)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;You can either purchase Esri's Portal product or write your own converter for translating KML to JSON for consumption by the API classes.&amp;nbsp; (or you could write your own KML layer class to consume the KML directly)&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for quick answer, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on 1:&amp;nbsp; rephrase: If I want to display 1000 placemarks/markers/PictureMarker in arcgis browser map, do I get that faster by using a KMl/kmz generated on server or by adding one by one in arcgis javascript api (we having only 5 types of markers == 5 different icon) ?&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we did some testing on google earth:&amp;nbsp; using KML we load much faster (10x) than using api. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm aware of having a different model here (network+severs) but I asked the question just in case somebody else&amp;nbsp; done this test in the past and it's a know issue, and I can work in best direction and avoid slower path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on 2: thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 12:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204241#M18936</guid>
      <dc:creator>PetreCojocea</dc:creator>
      <dc:date>2012-11-12T12:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: performance kml vs api</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204242#M18937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;on 1:&amp;nbsp; rephrase: If I want to display 1000 placemarks/markers/PictureMarker in arcgis browser map, do I get that faster by using a KMl/kmz generated on server or by adding one by one in arcgis javascript api (we having only 5 types of markers == 5 different icon) ?&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That still looks like the same question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whether you choose KML or some other format if you want to render on the client then you're still going to have to add features to the map one by one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a rule of thumb, for those kind of numbers you'd probably want to render things server-side e.g. using a WMS-like service through, perhaps, ArcGIS Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're going to be putting 1000 placemarks in a KML file and sending it to the browser then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;a) you're sending reasonably (subjectively of course) large files over the wire (potentially, depends how much data beyond just the location you're sending)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) you're asking a browser to parse that file (memory/CPU)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c) you're asking the browser (via the API) to loop through many items rendering them on the map (also resource hungry)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The above doesn't really change whether you're using KML or JSON..although the former is more verbose, and I'd argue, more resource-intensive.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 13:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/performance-kml-vs-api/m-p/204242#M18937</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-11-12T13:18:49Z</dc:date>
    </item>
  </channel>
</rss>

