SupportedCrsIds

This commit is contained in:
ClemensFischer 2025-09-19 20:22:10 +02:00
parent 7da0f7f9af
commit 5bba4d6a1b
6 changed files with 11 additions and 11 deletions

View file

@ -127,7 +127,7 @@ namespace MapControl
/// </summary>
public double LoadingProgress => (double)GetValue(LoadingProgressProperty);
public abstract IReadOnlyCollection<string> SupportedMapProjections { get; }
public abstract IReadOnlyCollection<string> SupportedCrsIds { get; }
protected override void SetParentMap(MapBase map)
{
@ -189,8 +189,8 @@ namespace MapControl
if (ParentMap != null &&
ParentMap.ActualWidth > 0d &&
ParentMap.ActualHeight > 0d &&
SupportedMapProjections != null &&
SupportedMapProjections.Contains(ParentMap.MapProjection.CrsId))
SupportedCrsIds != null &&
SupportedCrsIds.Contains(ParentMap.MapProjection.CrsId))
{
var width = ParentMap.ActualWidth * RelativeImageSize;
var height = ParentMap.ActualHeight * RelativeImageSize;