mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Added ViewTransform methods
This commit is contained in:
parent
eee71e9190
commit
26e9b21816
6 changed files with 25 additions and 12 deletions
|
|
@ -220,7 +220,7 @@ namespace MapControl
|
|||
private Rect GetViewRect(Rect mapRect)
|
||||
{
|
||||
var center = new Point(mapRect.X + mapRect.Width / 2d, mapRect.Y + mapRect.Height / 2d);
|
||||
var position = parentMap.ViewTransform.MapToViewMatrix.Transform(center);
|
||||
var position = parentMap.ViewTransform.MapToView(center);
|
||||
|
||||
if (parentMap.MapProjection.Type <= MapProjectionType.NormalCylindrical &&
|
||||
!parentMap.InsideViewBounds(position))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue