mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4.17.0: Added support for WMTS
This commit is contained in:
parent
b5fe760c83
commit
31a58c3510
4 changed files with 51 additions and 45 deletions
|
|
@ -198,7 +198,7 @@ namespace MapControl
|
|||
InverseViewportTransform = matrix;
|
||||
}
|
||||
|
||||
internal Matrix CreateViewportTransform(Point mapCenter, Point viewportCenter)
|
||||
private Matrix CreateViewportTransform(Point mapCenter, Point viewportCenter)
|
||||
{
|
||||
var matrix = new Matrix(ViewportScale, 0d, 0d, -ViewportScale, -ViewportScale * mapCenter.X, ViewportScale * mapCenter.Y);
|
||||
|
||||
|
|
@ -215,13 +215,13 @@ namespace MapControl
|
|||
|
||||
matrix.Rotate(ViewportRotation);
|
||||
|
||||
// tile grid origin in map cordinates
|
||||
// tile grid origin in map coordinates
|
||||
//
|
||||
var mapOrigin = new Point(
|
||||
tileGridTopLeft.X + tileGridOrigin.X / tileGridScale,
|
||||
tileGridTopLeft.Y - tileGridOrigin.Y / tileGridScale);
|
||||
|
||||
// tile grid origin in viewport cordinates
|
||||
// tile grid origin in viewport coordinates
|
||||
//
|
||||
var viewOrigin = ViewportTransform.Transform(mapOrigin);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue