A newer version of this page is available.
Switch to the current version.
MapControl.CoordinateSystem Property
Gets or sets the map coordinate system used by a map control.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v19.2.dll
Declaration
public MapCoordinateSystem CoordinateSystem { get; set; }
Public Property CoordinateSystem As MapCoordinateSystem
Property Value
Type | Description |
---|---|
MapCoordinateSystem | A MapCoordinateSystem class descendant object. |
Examples
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-customize-coordinate-systems-of-a-map-and-data-source-t202055
void SetGeoMapGeoData() {
imageLayer.Visible = false;
Uri baseUri = new Uri(System.Reflection.Assembly.GetEntryAssembly().Location);
Adapter.FileUri = new Uri(baseUri, geoMapGeoDataFile);
Adapter.SourceCoordinateSystem = new GeoSourceCoordinateSystem();
mapControl.CoordinateSystem = new GeoMapCoordinateSystem();
}
See Also
Feedback