mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-05-07 13:37:47 +00:00
File scoped namespaces
This commit is contained in:
parent
c14377f976
commit
65aba44af6
152 changed files with 11962 additions and 12115 deletions
|
|
@ -5,22 +5,21 @@ using System.Windows;
|
|||
using Avalonia;
|
||||
#endif
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
public class WmtsTileMatrix(
|
||||
string identifier, double scale, Point topLeft, int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)
|
||||
{
|
||||
public string Identifier => identifier;
|
||||
public double Scale => scale;
|
||||
public Point TopLeft => topLeft;
|
||||
public int TileWidth => tileWidth;
|
||||
public int TileHeight => tileHeight;
|
||||
public int MatrixWidth => matrixWidth;
|
||||
public int MatrixHeight => matrixHeight;
|
||||
namespace MapControl;
|
||||
|
||||
// Indicates if the total width in meters matches the earth circumference.
|
||||
//
|
||||
public bool HasFullHorizontalCoverage { get; } =
|
||||
Math.Abs(matrixWidth * tileWidth / scale - 360d * MapProjection.Wgs84MeterPerDegree) < 1e-3;
|
||||
}
|
||||
public class WmtsTileMatrix(
|
||||
string identifier, double scale, Point topLeft, int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)
|
||||
{
|
||||
public string Identifier => identifier;
|
||||
public double Scale => scale;
|
||||
public Point TopLeft => topLeft;
|
||||
public int TileWidth => tileWidth;
|
||||
public int TileHeight => tileHeight;
|
||||
public int MatrixWidth => matrixWidth;
|
||||
public int MatrixHeight => matrixHeight;
|
||||
|
||||
// Indicates if the total width in meters matches the earth circumference.
|
||||
//
|
||||
public bool HasFullHorizontalCoverage { get; } =
|
||||
Math.Abs(matrixWidth * tileWidth / scale - 360d * MapProjection.Wgs84MeterPerDegree) < 1e-3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue