Interface IPluginTiledMapResource
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Metadata and asynchronous tile access for a map resource.
public interface IPluginTiledMapResource : IAsyncDisposable
- Inherited Members
Properties
Id
The resource id the map was opened from.
string Id { get; }
Property Value
MaxZoom
The highest zoom level the map has tiles for.
int MaxZoom { get; }
Property Value
MinZoom
The lowest zoom level the map has tiles for.
int MinZoom { get; }
Property Value
TileSize
The width and height of a full tile, in pixels.
int TileSize { get; }
Property Value
WorldBounds
The part of the world the whole map covers.
PluginMapViewport WorldBounds { get; }
Property Value
Methods
LoadTileAsync(PluginMapTileKey, CancellationToken)
Loads and decodes one tile.
ValueTask<PluginMapTile?> LoadTileAsync(PluginMapTileKey key, CancellationToken cancellationToken = default)
Parameters
keyPluginMapTileKeyWhich tile.
cancellationTokenCancellationTokenCancels the load.
Returns
- ValueTask<PluginMapTile>
The tile, or null when the map has no tile there.