KML Shapes Rendered in ShapeFileLayer in WPF Maps (SfMap)

A KML file can be rendered with the help of the ShapeFileLayer in SfMap. The KML file should be added as an Embedded Resource to the application project. The URI of the KML file must be given in the following order:

  1. Namespace of project
  2. Folder names
  3. KmlFileName.kml
  • xaml
  • <syncfusion:SfMap>
    
                <syncfusion:SfMap.Layers>
    
                    <syncfusion:ShapeFileLayer Uri="KmlImportDemo.KMLFiles.Eu.kml">                    
    
                    </syncfusion:ShapeFileLayer>
    
                </syncfusion:SfMap.Layers>
    
            </syncfusion:SfMap>