How to: Load Data from a Shapefile
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.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-automatically-generate-bubble-chart-items-from-a-datasource-t180068.
<dxm:VectorLayer x:Name="mapLayer" ShapeFill="Gray">
<dxm:ShapefileDataAdapter FileUri="Data/Countries.shp"/>
</dxm:VectorLayer>
See Also