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
e650c9081f
commit
e821e39841
38 changed files with 991 additions and 307 deletions
33
MapControl/Shared/WmtsTileMatrix.cs
Normal file
33
MapControl/Shared/WmtsTileMatrix.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
||||
// © 2020 Clemens Fischer
|
||||
// Licensed under the Microsoft Public License (Ms-PL)
|
||||
|
||||
#if !WINDOWS_UWP
|
||||
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;
|
||||
}
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue