2025-09-10 20:09:12 +02:00
|
|
|
|
#if WPF
|
2024-05-22 11:25:32 +02:00
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
using System.Windows.Media;
|
2021-11-17 23:17:11 +01:00
|
|
|
|
#elif UWP
|
2014-07-01 18:57:44 +02:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
2018-12-02 20:22:59 +01:00
|
|
|
|
using Windows.UI.Xaml.Media;
|
2024-05-22 11:25:32 +02:00
|
|
|
|
#elif WINUI
|
|
|
|
|
|
using Microsoft.UI.Xaml.Controls;
|
|
|
|
|
|
using Microsoft.UI.Xaml.Media;
|
2025-08-19 19:43:02 +02:00
|
|
|
|
#elif AVALONIA
|
|
|
|
|
|
using Avalonia.Controls;
|
|
|
|
|
|
using Avalonia.Media;
|
2014-07-01 18:57:44 +02:00
|
|
|
|
#endif
|
2012-04-25 22:02:53 +02:00
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
2025-11-13 13:36:28 +01:00
|
|
|
|
public partial class Tile(int zoomLevel, int x, int y, int columnCount) : ITile
|
2012-04-25 22:02:53 +02:00
|
|
|
|
{
|
2025-09-15 17:46:31 +02:00
|
|
|
|
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;
|
2023-08-12 17:36:37 +02:00
|
|
|
|
public bool IsPending { get; set; } = true;
|
2025-11-13 13:36:28 +01:00
|
|
|
|
public Image Image { get; } = new Image { Stretch = Stretch.Fill };
|
2012-04-25 22:02:53 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|