How to render KML shapes in sub shape file layer for UWP Maps

18 Nov 20181 minute to read

A KML file can be rendered with the help of the SubShapeFileLayer also in SfMap. The KML file should be added as an embedded resource to the application project. For more information on the Uri for KML, refer to KML rendering in ShapeFileLayer.

  • XAML
  • <syncfusion:SfMap>
        <syncfusion:SfMap.Layers>
            <syncfusion:ShapeFileLayer Uri="KmlImportDemo.Assets.ShapeFiles.world1.shp">
                <syncfusion:ShapeFileLayer.SubShapeFileLayers>
                    <syncfusion:SubShapeFileLayer Uri="KmlImportDemo.Assets.KmlFiles.Eu.kml"/>
                </syncfusion:ShapeFileLayer.SubShapeFileLayers>
            </syncfusion:ShapeFileLayer>
        </syncfusion:SfMap.Layers>
    </syncfusion:SfMap>

    UWP Map Control KML Shapes Rendered in SubShapeFileLayer