Simplified WmsImageLayer

This commit is contained in:
ClemensFischer 2024-09-08 15:56:48 +02:00
parent 6b7fd84c7b
commit 7df36512b8
3 changed files with 80 additions and 71 deletions

View file

@ -208,14 +208,14 @@ namespace MapControl
private Rect? GetViewRect(BoundingBox boundingBox)
{
var mapRect = parentMap.MapProjection.BoundingBoxToMap(boundingBox);
var rect = parentMap.MapProjection.BoundingBoxToMap(boundingBox);
if (mapRect.HasValue)
if (rect.HasValue)
{
return GetViewRect(mapRect.Value);
rect = GetViewRect(rect.Value);
}
return null;
return rect;
}
private Rect GetViewRect(Rect mapRect)