mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Version 4.17.0: Added support for WMTS
This commit is contained in:
parent
7e5c5c0671
commit
b5fe760c83
7 changed files with 112 additions and 125 deletions
|
|
@ -351,7 +351,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 * 360d / MapProjection.TileSize;
|
||||
* MapProjection.TrueScale * 360d / 256d;
|
||||
|
||||
TargetZoomLevel = Math.Log(scale, 2d);
|
||||
TargetCenter = MapProjection.PointToLocation(center);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue