Parameterless constructors of projection classes

This commit is contained in:
ClemensFischer 2024-08-28 14:58:06 +02:00
parent 7637210211
commit ece82bd654
10 changed files with 77 additions and 11 deletions

View file

@ -119,7 +119,13 @@ namespace MapControl
{
public const string DefaultCrsId = "EPSG:32661";
public UpsNorthProjection(string crsId = DefaultCrsId)
public UpsNorthProjection()
: this(DefaultCrsId)
{
// XAML needs parameterless constructor
}
public UpsNorthProjection(string crsId)
{
CrsId = crsId;
IsNorth = true;
@ -133,7 +139,13 @@ namespace MapControl
{
public const string DefaultCrsId = "EPSG:32761";
public UpsSouthProjection(string crsId = DefaultCrsId)
public UpsSouthProjection()
: this(DefaultCrsId)
{
// XAML needs parameterless constructor
}
public UpsSouthProjection(string crsId)
{
CrsId = crsId;
IsNorth = false;