Skip to main content

How to: Load Vector Data from Shapefile

To load vector data from a Shapefile, do the following.

<Map:VectorFileLayer 
    ShapeStroke="{ThemeResource AppBarBackgroundThemeBrush}">
    <Map:ShapefileReader>
        <Map:ShapefileReader.FileSource>
            <Map:MapPackageFileSource FileName="Assets\Countries.shp"/>
        </Map:ShapefileReader.FileSource>
    </Map:ShapefileReader>
</Map:VectorFileLayer>