Improve MapRect

This commit is contained in:
ClemensFischer 2022-12-07 17:00:25 +01:00
parent 07a8e454d5
commit 8bb2555533
10 changed files with 80 additions and 65 deletions

View file

@ -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));