mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Simplified WmsImageLayer
This commit is contained in:
parent
6b7fd84c7b
commit
7df36512b8
3 changed files with 80 additions and 71 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue