This is a migrated thread and some comments may be shown as answers.

Creating legend from kml

1 Answer 19 Views
Map
This is a migrated thread and some comments may be shown as answers.
Geoffrey
Top achievements
Rank 1
Geoffrey asked on 27 Jun 2012, 07:39 PM
I'm trying to display this kml file (http://www.ercot.com/content/cdr/contours/rtmLmpHg.kml?uniquenessFactor=1340825710487) on the RadMap. I'm able to display it on the map but there are two additional things I'd like to be able to do. The first is to be able to display the legend (you can see an example if you load that kml in google earth) in the radmap legend. The second is to display the tooltips like they are displayed in google earth. Any idea on how to accomplish this? I tried using the KmlReader class, but other than the points and contours I was unsuccessful.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 02 Jul 2012, 07:37 AM
Hello Geoffrey,

The RadMap has limited KML support. Currently the map control supports the following KML elements:
1. Point
2. LineString
3. Polygon (including outerBoundaryIs and innerBoundaryIs)
4. Styles: IconStyle (partial support, including hotspot and scale), LineStyle, PolyStyle
5. BalloonStyle
6. ExtendedData
7. Partial support for MultiGeometry tag.

Unfortunately your KML has not an information which can be used by RadMap to show tooltips and legend (these features require ExtendedData in the KML).

Kind regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
Geoffrey
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or