Skip to main content
A newer version of this page is available. .

CartesianMapCoordinateSystem Class

This class allows use of the Cartesian coordinate system for the Map Control.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v21.2.dll

NuGet Package: DevExpress.Wpf.Map

Declaration

public class CartesianMapCoordinateSystem :
    MapCoordinateSystem

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.

  1. Crete a ShapefileDataAdapter object.
  2. Set its CoordinateSystemDataAdapterBase.SourceCoordinateSystem property to a CartesianSourceCoordinateSystem object.
  3. Specify its ShapefileDataAdapter.FileUri property.
  4. Assign this object to the VectorLayer.Data property.

View Example

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();
        }
    }
}
See Also