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

@ -28,7 +28,9 @@ namespace MapControl.UiTools
protected override bool GetIsEnabled(MapBase map)
{
return map.MapLayer is not IMapLayer mapLayer || mapLayer.SupportedCrsIds.Contains(CrsId);
return map.MapLayer is not IMapLayer mapLayer
|| mapLayer.SupportedCrsIds == null
|| mapLayer.SupportedCrsIds.Contains(CrsId);
}
protected override bool GetIsChecked(MapBase map)