mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Improve MapRect
This commit is contained in:
parent
07a8e454d5
commit
8bb2555533
10 changed files with 80 additions and 65 deletions
|
|
@ -63,8 +63,8 @@ namespace MapControl
|
|||
for (int i = 0; i < points.Count; i++)
|
||||
{
|
||||
points[i] = new Point(
|
||||
scale * (points[i].X - mapRect.X),
|
||||
scale * (mapRect.Height + mapRect.Y - points[i].Y));
|
||||
scale * (points[i].X - mapRect.XMin),
|
||||
scale * (mapRect.YMax - points[i].Y));
|
||||
}
|
||||
|
||||
drawings.Children.Add(item.GetDrawing(points, scale, rotation));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue