mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MapPanel.cs
This commit is contained in:
parent
7e7f77afe6
commit
a2b3756595
|
|
@ -220,7 +220,9 @@ namespace MapControl
|
||||||
|
|
||||||
protected ViewRect GetViewRect(BoundingBox boundingBox)
|
protected ViewRect GetViewRect(BoundingBox boundingBox)
|
||||||
{
|
{
|
||||||
return GetViewRect(parentMap.MapProjection.BoundingBoxToMapRect(boundingBox));
|
var mapRect = parentMap.MapProjection.BoundingBoxToMapRect(boundingBox);
|
||||||
|
|
||||||
|
return mapRect != null ? GetViewRect(mapRect) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ViewRect GetViewRect(MapRect mapRect)
|
protected ViewRect GetViewRect(MapRect mapRect)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue