Skip to main content

VectorFileLayer Class

A layer that displays vector elements loaded from a file (e.g., Shapefile or KML).

Namespace: DevExpress.UI.Xaml.Map

Assembly: DevExpress.UI.Xaml.Map.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

[Bindable]
[ContentProperty(Name = "FileReader")]
public class VectorFileLayer :
    VectorLayer

Example

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>
See Also