mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Added ViewRect,cs
This commit is contained in:
parent
9956e78028
commit
58ba1328c6
4 changed files with 35 additions and 26 deletions
|
|
@ -273,7 +273,7 @@ namespace MapControl
|
|||
}
|
||||
|
||||
var mapRect = projection.BoundingBoxToRect(BoundingBox);
|
||||
var viewRect = GetViewRectangle(mapRect);
|
||||
var viewRect = GetViewRect(mapRect);
|
||||
var viewSize = ParentMap.RenderSize;
|
||||
|
||||
var transform = new Matrix(1, 0, 0, 1, -viewSize.Width / 2, -viewSize.Height / 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue