WmsImageLayer.InitializeAsync

This commit is contained in:
ClemensFischer 2025-09-22 09:17:26 +02:00
parent 7b2b95d629
commit a7e4f50256
3 changed files with 86 additions and 62 deletions

View file

@ -189,8 +189,7 @@ namespace MapControl
if (ParentMap != null &&
ParentMap.ActualWidth > 0d &&
ParentMap.ActualHeight > 0d &&
SupportedCrsIds != null &&
SupportedCrsIds.Contains(ParentMap.MapProjection.CrsId))
(SupportedCrsIds == null || SupportedCrsIds.Contains(ParentMap.MapProjection.CrsId)))
{
var width = ParentMap.ActualWidth * RelativeImageSize;
var height = ParentMap.ActualHeight * RelativeImageSize;