Table of Contents

Class StreamTileFetcher

Namespace
WitShells.MapView
public class StreamTileFetcher : ThreadJob<List<Tile>>
Inheritance
StreamTileFetcher
Inherited Members

Constructors

StreamTileFetcher(string, List<Vector2Int>, int, bool, bool, bool)

public StreamTileFetcher(string database, List<Vector2Int> tilesToFetch, int zoomLevel, bool showLabels, bool onlineDownload = true, bool useDatabase = true)

Parameters

database string
tilesToFetch List<Vector2Int>
zoomLevel int
showLabels bool
onlineDownload bool
useDatabase bool

Fields

database

public readonly string database

Field Value

string

Methods

BulkFetchTilesChunked(SQLiteConnection, List<Vector2Int>, int, int)

Chunked fetch that avoids SQLite parameter limits by querying tiles in smaller groups.

public static Dictionary<Vector2Int, Tile> BulkFetchTilesChunked(SQLiteConnection db, List<Vector2Int> tilesToFetch, int zoomLevel, int chunkSize = 200)

Parameters

db SQLiteConnection
tilesToFetch List<Vector2Int>
zoomLevel int
chunkSize int

Returns

Dictionary<Vector2Int, Tile>

ExecuteStreamingAsync(Action<List<Tile>>, Action)

public override Task ExecuteStreamingAsync(Action<List<Tile>> onProgress, Action onComplete = null)

Parameters

onProgress Action<List<Tile>>
onComplete Action

Returns

Task