This question is locked. New answers and comments are not allowed.
Hi telerik.
So i have currently been given the task of letting users import lots of different kml into our radmap control, and i am finding very mixed results, alot of them give errors.
I found an old post stating that only the following are currently supported
Currently the map control supports the following KML elements:
1. Point
2. LineString
3. Polygon (including outerBoundaryIs and innerBoundaryIs)
4. Styles: IconStyle (including hotspot), LineStyle, PolyStyle
5. BalloonStyle
6. ExtendedData
7. Partial support for MultiGeometry tag.
Is this still true for today (using 2012 release). and is there a nice easy way to determine when im reading the kml if something is supported or not and show an error ?
Any help would be greatly appreciated
So i have currently been given the task of letting users import lots of different kml into our radmap control, and i am finding very mixed results, alot of them give errors.
I found an old post stating that only the following are currently supported
Currently the map control supports the following KML elements:
1. Point
2. LineString
3. Polygon (including outerBoundaryIs and innerBoundaryIs)
4. Styles: IconStyle (including hotspot), LineStyle, PolyStyle
5. BalloonStyle
6. ExtendedData
7. Partial support for MultiGeometry tag.
Is this still true for today (using 2012 release). and is there a nice easy way to determine when im reading the kml if something is supported or not and show an error ?
if (dialog.File.Extension == ".kmz")
{
ZipFile zipFile = new ZipFile(dialog.File.OpenRead());
List<FrameworkElement> list = KmlReader.Read(zipFile.GetInputStream(0));
foreach (FrameworkElement element in list)
{
this.wmllayer.Items.Add(element);
}
this.wmllayer.Visibility = Visibility.Visible;
}
else
{
// Open the selected file to read.
System.IO.
Stream fileStream = dialog.File.OpenRead();
List<FrameworkElement> list = KmlReader.Read(fileStream);
foreach (FrameworkElement element in list)
{
this.wmllayer.Items.Add(element);
}
this.wmllayer.Visibility = Visibility.Visible;
}
Any help would be greatly appreciated