Improved MapProjection.Center handling

This commit is contained in:
Clemens 2022-03-06 17:28:27 +01:00
parent f52281ba85
commit 123a9916eb
5 changed files with 32 additions and 11 deletions

View file

@ -25,6 +25,7 @@ namespace MapControl.Projections
public class GeoApiProjection : MapProjection
{
private ICoordinateSystem coordinateSystem;
private Location center;
private double scaleFactor;
private string bboxFormat;
@ -100,6 +101,10 @@ namespace MapControl.Projections
Type = MapProjectionType.TransverseCylindrical;
}
Center = new Location(
centralParallel != null ? centralParallel.Value : 0d,
centralMeridian != null ? centralMeridian.Value : 0d);
scaleFactor = 1d;
bboxFormat = "{0},{1},{2},{3}";
}