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.v24.2.dll
NuGet Package: DevExpress.Wpf.Map
Declaration
Example
To load a shapefile to the map do the following.
- Create a ShapefileDataAdapter object and assign it to the VectorLayer.Data property.
- Specify the ShapefileDataAdapter.FileUri property of the object.
<dxm:VectorLayer x:Name="mapLayer" ShapeFill="Gray">
<dxm:ShapefileDataAdapter FileUri="Data/Countries.shp"/>
</dxm:VectorLayer>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the VectorLayer class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
Inheritance
See Also