mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Primary constructor parameters
This commit is contained in:
parent
f63fba98c1
commit
65462697df
8 changed files with 35 additions and 31 deletions
|
|
@ -10,12 +10,18 @@ namespace MapControl
|
|||
string identifier, double scale, Point topLeft,
|
||||
int tileWidth, int tileHeight, int matrixWidth, int matrixHeight)
|
||||
{
|
||||
public string Identifier { get; } = identifier;
|
||||
public double Scale { get; } = scale;
|
||||
public Point TopLeft { get; } = topLeft;
|
||||
public int TileWidth { get; } = tileWidth;
|
||||
public int TileHeight { get; } = tileHeight;
|
||||
public int MatrixWidth { get; } = matrixWidth;
|
||||
public int MatrixHeight { get; } = 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 covers the whole earth
|
||||
// circumference (minus one millimeter for floating point precision).
|
||||
//
|
||||
public bool HasFullHorizontalCoverage { get; } =
|
||||
matrixWidth * tileWidth / scale >= 360d * MapProjection.Wgs84MeterPerDegree - 1e-3;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue