Changed IMapLayer interface

This commit is contained in:
ClemensFischer 2026-04-09 20:40:14 +02:00
parent 57ee896f8a
commit 1d4c5a4b90
8 changed files with 28 additions and 32 deletions

View file

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
#if WPF
@ -127,11 +126,6 @@ namespace MapControl
/// </summary>
public double LoadingProgress => (double)GetValue(LoadingProgressProperty);
/// <summary>
/// Gets a collection of all CRSs supported by a MapImageLayer.
/// </summary>
public IReadOnlyCollection<string> SupportedCrsIds { get; protected set; }
protected override void SetParentMap(MapBase map)
{
if (map != null)
@ -182,8 +176,7 @@ namespace MapControl
ImageSource image = null;
Rect? mapRect = null;
if (ParentMap != null &&
(SupportedCrsIds == null || SupportedCrsIds.Contains(ParentMap.MapProjection.CrsId)))
if (ParentMap != null)
{
var width = ParentMap.ActualWidth * RelativeImageSize;
var height = ParentMap.ActualHeight * RelativeImageSize;