The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

[Bindable]
[ContentProperty(Name = "FileReader")]
public class VectorFileLayer :
    VectorLayer
Public Class VectorFileLayer
    Inherits VectorLayer
    Implements

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>

Implements

DevExpress.UI.Xaml.Map.Native.IOwnedElement
DevExpress.UI.Xaml.Map.Native.ILayerMapItemCollectionOwner
DevExpress.Core.Native.ISelectedItemsOwner<Object>
See Also