wpf-devexpress-dot-xpf-dot-map-69b25899.md
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.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public class VectorLayer :
VectorLayerBase
Public Class VectorLayer
Inherits VectorLayerBase
To load a shapefile to the map do the following.
<dxm:VectorLayer x:Name="mapLayer" ShapeFill="Gray">
<dxm:ShapefileDataAdapter FileUri="Data/Countries.shp"/>
</dxm:VectorLayer>
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.
wpf-map-load-vector-cartesian-data/CS/MapLesson2/MainWindow.xaml#L26
</dxm:MapControl.CoordinateSystem>
<dxm:VectorLayer x:Name="vectorLayer">
<dxm:VectorLayer.Colorizer>
<dxm:MapControl Name="mapControl" >
<dxm:VectorLayer Name="vectorLayer" MouseDoubleClick="vLayer_MouseDoubleClick" EnableSelection="False" >
<dxm:VectorLayer.Data >
wpf-map_implement-custom-map-projection/CS/CustomProjection/MainWindow.xaml#L17
</dxm:MapControl.CoordinateSystem>
<dxm:VectorLayer>
<dxm:ShapefileDataAdapter FileUri="Data/Countries.shp" />
map-wpf-manually-load-a-cartesian-map-shapefile/CS/BuildInCoordinateConverters/MainWindow.xaml#L104
</dxm:ImageTilesLayer>
<dxm:VectorLayer ShapeFill="#40FF8800">
<dxm:ShapefileDataAdapter
Show 11 items
Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control MapElement LayerBase VectorLayerBase VectorLayer
See Also