<?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 Where does the kml file loading process occur? in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/where-does-the-kml-file-loading-process-occur/m-p/1055673#M10070</link>
    <description>&lt;P&gt;Hello, I'm still quite new with the ArcGIS SDK.&lt;/P&gt;&lt;P&gt;I'm loading a kml file into my application to display its content in a xaml treeview. And it works fine.&lt;/P&gt;&lt;P&gt;But unfortunately if the kml file is very large then my application freezes during the loading process.&lt;/P&gt;&lt;P&gt;That's why I decided to outsource the loading process into another thread. But I don't know where the loading process exactly occurs.&lt;/P&gt;&lt;P&gt;I open a file dialog and parse the content of the kml file into a kmlTree.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "KML File|*.kml";
openFileDialog.Title = "Open KML file:";
Nullable&amp;lt;bool&amp;gt; dialogResult = openFileDialog.ShowDialog();
if (dialogResult == true)
{
   string path = openFileDialog.FileName;
   Uri kmlUri = new Uri(path);
   Dataset = new KmlDataset(kmlUri);
   KmlLayer layer = new KmlLayer(Dataset);
   SavesTreeToLayer.Add(kmlTree, layer);
   mapView.Map.OperationalLayers.Add(layer);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have an idea?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 14:57:27 GMT</pubDate>
    <dc:creator>RobWag</dc:creator>
    <dc:date>2021-05-07T14:57:27Z</dc:date>
    <item>
      <title>Where does the kml file loading process occur?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/where-does-the-kml-file-loading-process-occur/m-p/1055673#M10070</link>
      <description>&lt;P&gt;Hello, I'm still quite new with the ArcGIS SDK.&lt;/P&gt;&lt;P&gt;I'm loading a kml file into my application to display its content in a xaml treeview. And it works fine.&lt;/P&gt;&lt;P&gt;But unfortunately if the kml file is very large then my application freezes during the loading process.&lt;/P&gt;&lt;P&gt;That's why I decided to outsource the loading process into another thread. But I don't know where the loading process exactly occurs.&lt;/P&gt;&lt;P&gt;I open a file dialog and parse the content of the kml file into a kmlTree.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Filter = "KML File|*.kml";
openFileDialog.Title = "Open KML file:";
Nullable&amp;lt;bool&amp;gt; dialogResult = openFileDialog.ShowDialog();
if (dialogResult == true)
{
   string path = openFileDialog.FileName;
   Uri kmlUri = new Uri(path);
   Dataset = new KmlDataset(kmlUri);
   KmlLayer layer = new KmlLayer(Dataset);
   SavesTreeToLayer.Add(kmlTree, layer);
   mapView.Map.OperationalLayers.Add(layer);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have an idea?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 14:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/where-does-the-kml-file-loading-process-occur/m-p/1055673#M10070</guid>
      <dc:creator>RobWag</dc:creator>
      <dc:date>2021-05-07T14:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Where does the kml file loading process occur?</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/where-does-the-kml-file-loading-process-occur/m-p/1058992#M10093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;decided to outsource the loading process into another thread. But I don't know where the loading process exactly occurs.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you mean your loading process or ArcGIS Runtime parsing the KML contents?&lt;/P&gt;&lt;P&gt;Can you share any code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While it's UWP, this demo might help: &lt;A href="https://github.com/Esri/arcgis-runtime-demos-dotnet/tree/main/src/KmlViewer/KmlViewer" target="_blank"&gt;https://github.com/Esri/arcgis-runtime-demos-dotnet/tree/main/src/KmlViewer/KmlViewer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 15:34:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/where-does-the-kml-file-loading-process-occur/m-p/1058992#M10093</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2021-05-18T15:34:06Z</dc:date>
    </item>
  </channel>
</rss>

