How to: Load a Vector Cartesian Map
To load a vector Cartesian map, do the following.
- Crete a ShapefileDataAdapter object.
- Set its CoordinateSystemDataAdapterBase.SourceCoordinateSystem property to a CartesianSourceCoordinateSystem object.
- Specify its ShapefileDataAdapter.FileUri property.
- Assign this object to the VectorLayer.Data property.
using System.Windows;
using DevExpress.Xpf.Map;
namespace CartesianMap {
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
}
private void VectorLayer_DataLoaded(object sender, DataLoadedEventArgs e) {
mapControl.ZoomToFitLayerItems();
}
}
}