mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Abstract classes Tile, TileSource
This commit is contained in:
parent
20e4fcce75
commit
cb8fff0dd1
14 changed files with 95 additions and 98 deletions
|
|
@ -15,7 +15,7 @@ using ImageSource = Avalonia.Media.IImage;
|
|||
|
||||
namespace MapControl.MBTiles
|
||||
{
|
||||
public sealed partial class MBTileSource : TileSource, IDisposable
|
||||
public sealed class MBTileSource : TileSource, IDisposable
|
||||
{
|
||||
private static ILogger logger;
|
||||
private static ILogger Logger => logger ??= ImageLoader.LoggerFactory?.CreateLogger<MBTileSource>();
|
||||
|
|
@ -24,6 +24,8 @@ namespace MapControl.MBTiles
|
|||
|
||||
public IDictionary<string, string> Metadata { get; } = new Dictionary<string, string>();
|
||||
|
||||
public override bool Cacheable => false;
|
||||
|
||||
public async Task OpenAsync(string file)
|
||||
{
|
||||
Close();
|
||||
|
|
@ -85,5 +87,10 @@ namespace MapControl.MBTiles
|
|||
|
||||
return image;
|
||||
}
|
||||
|
||||
public override Uri GetUri(int zoomLevel, int column, int row)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue