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.v18.2.dll

Declaration

public class VectorFileLayer :
    VectorLayer,
    IOwnedElement,
    INotifyPropertyChanged,
    ILayerMapItemCollectionOwner,
    ISelectedItemsOwner<object>
Public Class VectorFileLayer
    Inherits VectorLayer
    Implements IOwnedElement,
               INotifyPropertyChanged,
               ILayerMapItemCollectionOwner,
               ISelectedItemsOwner(Of Object)

Examples

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