mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-20 13:55:15 +00:00
Update GeoImage.cs
This commit is contained in:
parent
a2b3756595
commit
16d7c21ffa
1 changed files with 4 additions and 1 deletions
|
|
@ -102,8 +102,11 @@ namespace MapControl
|
||||||
|
|
||||||
var p1 = transform.Transform(new Point());
|
var p1 = transform.Transform(new Point());
|
||||||
var p2 = transform.Transform(new Point(bitmap.PixelWidth, bitmap.PixelHeight));
|
var p2 = transform.Transform(new Point(bitmap.PixelWidth, bitmap.PixelHeight));
|
||||||
|
var mapRect = new MapRect(p1, p2);
|
||||||
|
|
||||||
boundingBox = new BoundingBox(p1.Y, p1.X, p2.Y, p2.X); // Y=Latitude, X=Longitude
|
// TODO: boundingBox = MapProjection.MapRectToBoundingBox(mapRect);
|
||||||
|
|
||||||
|
boundingBox = new BoundingBox(mapRect.YMin, mapRect.XMin, mapRect.YMax, mapRect.XMax);
|
||||||
}
|
}
|
||||||
|
|
||||||
Content = image;
|
Content = image;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue