Muktiple KML files

Hi everyone,

Is it possible to show multiple Kml files on the map. 

I’ve more 300 files and I want the user to be able to filter and choose what to show. 

And, if it’s possible, change the color based on the user’s choices. 


Thanks for your help


3 Replies 1 reply marked as answer

VO Vishal Omprasad Syncfusion Team December 18, 2024 12:31 PM UTC

Hi Nicolas,

Regarding “Multiple KML files”:

In the WPF SfMap control, you can render multiple KML files by adding them as the sublayer(s) (SubShapeFileLayer) within the ShapeFileLayer.

For the ImageryLayer, direct rendering of KML files as sublayers is not supported. To achieve this, you need to convert the KML files to shapefiles using any verified third-party tool and then load the converted shapefiles as sublayers.

Please note that ColorMapping is not applied to KML file(s).

We have prepared an example sample and attached it below for your reference. Please check the sample and let us know whether it meets your requirement.

If you have any further questions or require assistance with any other aspect, please don't hesitate to let us know. We are here to help.

Regards,
Vishal O.


Attachment: MapDemo_f8bc0723.zip

Marked as answer

NL Nicolas Lagnitre replied to Vishal Omprasad December 21, 2024 01:47 PM UTC

Thanks for your help



PR Preethi Rajakandham Syncfusion Team December 23, 2024 04:37 AM UTC

Hi Nicolas,

You are welcome. Please let us know if you require any further assistance on this. We will be happy to assist you.

Regards,

Preethi R


Loader.
Up arrow icon