Hi,I tried the following code that was posted in this forum. I can see what appears to be the KML layer however It renders extremely small (almost a dot). It appears to be a projection issue however I am not sure what I am missing. Also the graphic count of the layer is 0. OpenFileDialog openFileDialog1 = new OpenFileDialog();openFileDialog1.Filter = "KML files (.kml)|*.kml|Compressed KML files (.kmz)|*.kmz|All Files (*.*)|*.*";openFileDialog1.FilterIndex = 1;bool? userClickedOK = openFileDialog1.ShowDialog();if (userClickedOK == true){ System.IO.Stream fileStream = openFileDialog1.File.OpenRead(); var layer = new KmlLayer(); layer.SetSource(myFiledDialog.File); myMap.Layers.Add(layer);}
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.