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

@ -18,7 +18,13 @@ namespace MapControl
{
public const string DefaultCrsId = "AUTO2:42004";
public AutoEquirectangularProjection(string crsId = DefaultCrsId)
public AutoEquirectangularProjection()
: this(DefaultCrsId)
{
// XAML needs parameterless constructor
}
public AutoEquirectangularProjection(string crsId)
{
Type = MapProjectionType.NormalCylindrical;
CrsId = crsId;