mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Improve MapRect
This commit is contained in:
parent
07a8e454d5
commit
8bb2555533
10 changed files with 80 additions and 65 deletions
|
|
@ -100,11 +100,10 @@ namespace MapControl
|
|||
transform.M21 = 0;
|
||||
}
|
||||
|
||||
var rect = new MapRect(
|
||||
transform.Transform(new Point()),
|
||||
transform.Transform(new Point(bitmap.PixelWidth, bitmap.PixelHeight)));
|
||||
var p1 = transform.Transform(new Point());
|
||||
var p2 = transform.Transform(new Point(bitmap.PixelWidth, bitmap.PixelHeight));
|
||||
|
||||
boundingBox = new BoundingBox(rect.Y, rect.X, rect.Y + rect.Height, rect.X + rect.Width);
|
||||
boundingBox = new BoundingBox(p1.Y, p1.X, p2.Y, p2.X); // Y=Latitude, X=Longitude
|
||||
}
|
||||
|
||||
Content = image;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue