mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Version 4.10.0: Added MapProjections library project.
This commit is contained in:
parent
30498bf593
commit
8c2cd92fe4
13 changed files with 635 additions and 7 deletions
|
|
@ -353,7 +353,7 @@ namespace MapControl
|
|||
var rect = MapProjection.BoundingBoxToRect(boundingBox);
|
||||
var center = new Point(rect.X + rect.Width / 2d, rect.Y + rect.Height / 2d);
|
||||
var scale = Math.Min(RenderSize.Width / rect.Width, RenderSize.Height / rect.Height)
|
||||
* MapProjection.TrueScale / MapProjection.PixelPerDegree;
|
||||
* MapProjection.TrueScale / MapProjection.PixelPerDegree;
|
||||
|
||||
TargetZoomLevel = Math.Log(scale, 2d);
|
||||
TargetCenter = MapProjection.PointToLocation(center);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue