A newer version of this page is available. Switch to the current version.

VectorLayer Class

A layer that contains vector elements (e.g. lines, circles, polygons, or elements loaded from a Shapefile).

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v18.2.dll

Declaration

public class VectorLayer :
    VectorLayerBase,
    IWeakEventListener,
    ILegendDataProvider
Public Class VectorLayer
    Inherits VectorLayerBase
    Implements IWeakEventListener,
               ILegendDataProvider

Related API Members

The following members accept/return VectorLayer objects:

Examples

To load a shapefile to the map do the following.

  1. Create a ShapefileDataAdapter object and assign it to the VectorLayer.Data property.
  2. Specify the ShapefileDataAdapter.FileUri property of the object.
<dxm:VectorLayer x:Name="mapLayer" ShapeFill="Gray">
    <dxm:ShapefileDataAdapter FileUri="Data/Countries.shp"/>
</dxm:VectorLayer>
See Also