CartesianMapCoordinateSystem Class
This class allows use of the Cartesian coordinate system for the Map Control.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v24.1.dll
NuGet Package: DevExpress.Wpf.Map
Declaration
Remarks
An object of the CartesianMapCoordinateSystem
class can be assigned to the MapControl.CoordinateSystem property.
Example
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();
}
}
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CartesianMapCoordinateSystem 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.