React VectorMap - projection
Specifies the map projection.
You can use one of the following out-of-the-box projections:
- Mercator projection
- Equirectangular projection
- Lambert cylindrical projection
- Miller cylindrical projection
To set a custom projection, implement two functions (from and to) that convert coordinates between geographical and widget coordinate systems. In addition, set the projection's aspectRatio.
aspectRatio
Specifies the projection's ratio of the width to the height.
Extreme points of the widget coordinate system form a square. Set this option to change the projection's form; for example, make the width more than height.
from
Converts coordinates from [x, y] to [lon, lat].
to
Converts coordinates from [lon, lat] to [x, y].
Two coordinates that represent a point in the dataSource coordinate system.
If you have technical questions, please create a support ticket in the DevExpress Support Center.