mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
CsWinRT1028, C# LangVersion 12
This commit is contained in:
parent
e1a4ba3fd6
commit
c0783efb4a
27 changed files with 67 additions and 119 deletions
|
|
@ -14,22 +14,15 @@ using Avalonia.Media;
|
|||
|
||||
namespace MapControl
|
||||
{
|
||||
public partial class Tile
|
||||
public partial class Tile(int zoomLevel, int x, int y, int columnCount)
|
||||
{
|
||||
public Tile(int zoomLevel, int x, int y, int columnCount)
|
||||
{
|
||||
ZoomLevel = zoomLevel;
|
||||
X = x;
|
||||
Y = y;
|
||||
Column = ((x % columnCount) + columnCount) % columnCount;
|
||||
}
|
||||
public int ZoomLevel { get; } = zoomLevel;
|
||||
public int X { get; } = x;
|
||||
public int Y { get; } = y;
|
||||
public int Column { get; } = ((x % columnCount) + columnCount) % columnCount;
|
||||
public int Row => Y;
|
||||
|
||||
public Image Image { get; } = new Image { Stretch = Stretch.Fill };
|
||||
public int ZoomLevel { get; }
|
||||
public int X { get; }
|
||||
public int Y { get; }
|
||||
public int Column { get; }
|
||||
public int Row => Y;
|
||||
public bool IsPending { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue