flutter_map_vector_tiles_mbtiles 1.0.0
flutter_map_vector_tiles_mbtiles: ^1.0.0 copied to clipboard
MBTiles support for flutter_map_vector_tiles: render a local .mbtiles archive as a flutter_map vector or raster source, fully offline, with SQLite reads kept off the UI isolate.
Changelog #
1.0.0 #
Initial release: MBTiles archives as a flutter_map_vector_tiles source.
- ✨
MbTilesVectorTileProvider: opens a local.mbtilesarchive and serves its tiles, vector or raster, with no network involved. TMS rows are flipped to slippy-map y, and both the flattilestable and the deduplicatingmap/imagesview schema are read through one query. - ✨
MbTilesMetadata: the archive'smetadatatable —name,format,attribution,bounds, suggested camera, and every row verbatim. Parsing is tolerant; a malformed value degrades to null rather than failing the archive. - ⚡ SQLite reads run on a dedicated reader isolate.
package:sqlite3is synchronous and provider loads happen on the UI isolate, where a cold lookup on a large archive would cost a frame. - ⚡ The provider opts out of the host's disk cache: an archive is the local copy already, so nothing is duplicated onto disk and no zero-byte markers accumulate for coordinates it does not cover.
- 🌐 Native only. Archives are SQLite read through
dart:ffi, soopenthrowsUnsupportedErroron web — use PMTiles there. Android, iOS, macOS, Windows and Linux need no setup at all:package:sqlite33.x bundles a prebuilt SQLite per architecture through build hooks, which is why this package requires Flutter 3.38 / Dart 3.10.