Version 5.0.1: Reworked MapBase and MapProjection

This commit is contained in:
ClemensF 2020-04-01 18:04:39 +02:00
parent 81ec8e7eb2
commit 2b41d298f4
4 changed files with 22 additions and 26 deletions

View file

@ -14,7 +14,7 @@ namespace MapControl
{
/// <summary>
/// Equirectangular Projection.
/// Longitude and Latitude values are transformed linearly to X and Y in meters.
/// Longitude and Latitude values are transformed linearly to X and Y values in meters.
/// </summary>
public class EquirectangularProjection : MapProjection
{
@ -47,7 +47,7 @@ namespace MapControl
public override string GetBboxValue(Rect rect)
{
return string.Format(CultureInfo.InvariantCulture,
CrsId != "CRS:84" ? "{1},{0},{3},{2}" : "{0},{1},{2},{3}",
CrsId == "CRS:84" ? "{0},{1},{2},{3}" : "{1},{0},{3},{2}",
rect.X / UnitsPerDegree, rect.Y / UnitsPerDegree,
(rect.X + rect.Width) / UnitsPerDegree, (rect.Y + rect.Height) / UnitsPerDegree);
}