Hi,
Note that KML is an XML but using a specific tags and attributes. The UsaSimplified.xml is actually in KML format but it is saved under the .XML extension. The UkSimplified.kml file is in the exactly same format as UsaSimplified.xml. However, the data saved in the files is different. The USA shape file contains more information as labels and fill colors for the polygons. In order to add similar information in the UK file you will need to do it manually or find a shape file with more information.
About the issue on your server, what doesn't work? Is it an error or missing shapes? I am afraid that I cannot assist you here because I don't know how your server and RadMap are set up. However, you can subscribe for the PreviewReadShapeDataCompleted event of the shape reader and check the event arguments' Error property. In the most cases it contains information why the data is not loaded.
As a side note, here is the code that I used with your shape file. As I can see it is displayed properly.
Regards,
Martin
Telerik by Progress
Note that KML is an XML but using a specific tags and attributes. The UsaSimplified.xml is actually in KML format but it is saved under the .XML extension. The UkSimplified.kml file is in the exactly same format as UsaSimplified.xml. However, the data saved in the files is different. The USA shape file contains more information as labels and fill colors for the polygons. In order to add similar information in the UK file you will need to do it manually or find a shape file with more information.
About the issue on your server, what doesn't work? Is it an error or missing shapes? I am afraid that I cannot assist you here because I don't know how your server and RadMap are set up. However, you can subscribe for the PreviewReadShapeDataCompleted event of the shape reader and check the event arguments' Error property. In the most cases it contains information why the data is not loaded.
As a side note, here is the code that I used with your shape file. As I can see it is displayed properly.
<
telerik:RadMap
>
<
telerik:RadMap.Provider
>
<
telerik:OpenStreetMapProvider
/>
</
telerik:RadMap.Provider
>
<
telerik:VisualizationLayer
>
<
telerik:VisualizationLayer.Reader
>
<
telerik:AsyncKmlReader
Source
=
"WpfApplication3;component/UKSimplified.kml"
/>
</
telerik:VisualizationLayer.Reader
>
</
telerik:VisualizationLayer
>
</
telerik:RadMap
>
Regards,
Martin
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.