2020-03-20 18:12:56 +01:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
2021-01-13 21:19:27 +01:00
|
|
|
|
// © 2021 Clemens Fischer
|
2020-03-20 18:12:56 +01:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
2021-06-14 21:41:37 +02:00
|
|
|
|
#if !WINUI && !WINDOWS_UWP
|
2020-03-20 18:12:56 +01:00
|
|
|
|
using System.Windows;
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public class WmtsTileMatrix
|
|
|
|
|
|
{
|
|
|
|
|
|
public WmtsTileMatrix(string identifier, double scaleDenominator, Point topLeft,
|
|
|
|
|
|
int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)
|
|
|
|
|
|
{
|
|
|
|
|
|
Identifier = identifier;
|
|
|
|
|
|
Scale = 1 / (scaleDenominator * 0.00028);
|
|
|
|
|
|
TopLeft = topLeft;
|
|
|
|
|
|
TileWidth = tileWidth;
|
|
|
|
|
|
TileHeight = tileHeight;
|
|
|
|
|
|
MatrixWidth = matrixWidth;
|
|
|
|
|
|
MatrixHeight = matrixHeight;
|
|
|
|
|
|
}
|
2021-11-13 00:28:31 +01:00
|
|
|
|
|
|
|
|
|
|
public string Identifier { get; }
|
|
|
|
|
|
public double Scale { get; }
|
|
|
|
|
|
public Point TopLeft { get; }
|
|
|
|
|
|
public int TileWidth { get; }
|
|
|
|
|
|
public int TileHeight { get; }
|
|
|
|
|
|
public int MatrixWidth { get; }
|
|
|
|
|
|
public int MatrixHeight { get; }
|
2020-03-20 18:12:56 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|