Class StreamTileFetcher
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
databasestringtilesToFetchList<Vector2Int>zoomLevelintshowLabelsboolonlineDownloadbooluseDatabasebool
Fields
database
public readonly string database
Field Value
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
Returns
- Dictionary<Vector2Int, Tile>
ExecuteStreamingAsync(Action<List<Tile>>, Action)
public override Task ExecuteStreamingAsync(Action<List<Tile>> onProgress, Action onComplete = null)