A newer version of this page is available.
Switch to the current version.
CartesianMapCoordinateSystem Class
This class allows use of the Cartesian coordinate system for the Map Control.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
public class CartesianMapCoordinateSystem :
MapCoordinateSystem
Public Class CartesianMapCoordinateSystem
Inherits MapCoordinateSystem
Remarks
An object of the CartesianMapCoordinateSystem class can be assigned to the MapControl.CoordinateSystem property.
Examples
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.
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-provide-a-cartesian-vector-map-for-the-map-control-t233956.
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();
}
}
}
Inheritance
Object
DispatcherObject
DependencyObject
Freezable
MapDependencyObject
MapCoordinateSystem
CartesianMapCoordinateSystem
Extension Methods
See Also
Feedback