mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
ITile, ITileSource interfaces
This commit is contained in:
parent
cb4dff8bcb
commit
20e4fcce75
19 changed files with 107 additions and 63 deletions
|
|
@ -14,15 +14,14 @@ using Avalonia.Media;
|
|||
|
||||
namespace MapControl
|
||||
{
|
||||
public partial class Tile(int zoomLevel, int x, int y, int columnCount)
|
||||
public partial class Tile(int zoomLevel, int x, int y, int columnCount) : ITile
|
||||
{
|
||||
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 bool IsPending { get; set; } = true;
|
||||
public Image Image { get; } = new Image { Stretch = Stretch.Fill };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue