Updated GeoApiProjectionFactory

This commit is contained in:
Clemens 2022-01-22 20:32:17 +01:00
parent e6b25c2f8d
commit 45b5d037bb
3 changed files with 11 additions and 38 deletions

View file

@ -4,7 +4,6 @@
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Diagnostics;
using System.Linq;
#if WINUI
using Microsoft.UI.Xaml;
@ -14,7 +13,6 @@ using Windows.UI.Xaml;
using Windows.UI.Xaml.Markup;
#else
using System.Windows;
using System.Windows.Controls;
using System.Windows.Markup;
#endif
@ -91,7 +89,7 @@ namespace MapControl.UiTools
if (selectedProjection != projection)
{
selectedProjection = projection;
Map.MapProjection = MapProjection.Factory.CreateProjection(selectedProjection);
Map.MapProjection = MapProjection.Factory.GetProjection(selectedProjection);
}
UpdateCheckedStates();