mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
TileSources, WMTS
This commit is contained in:
parent
605185db6e
commit
ce7c33f6e4
7 changed files with 70 additions and 63 deletions
|
|
@ -6,15 +6,12 @@ using Avalonia;
|
|||
|
||||
namespace MapControl
|
||||
{
|
||||
// See 07-057r7_Web_Map_Tile_Service_Standard.pdf, section 6.1.a, page 8:
|
||||
// "standardized rendering pixel size" is 0.28 mm
|
||||
//
|
||||
public class WmtsTileMatrix(
|
||||
string identifier, double scaleDenominator, Point topLeft,
|
||||
string identifier, double scale, Point topLeft,
|
||||
int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)
|
||||
{
|
||||
public string Identifier { get; } = identifier;
|
||||
public double Scale { get; } = 1 / (scaleDenominator * 0.00028); // 0.28 mm
|
||||
public double Scale { get; } = scale;
|
||||
public Point TopLeft { get; } = topLeft;
|
||||
public int TileWidth { get; } = tileWidth;
|
||||
public int TileHeight { get; } = tileHeight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue