flutter_map_vector_tiles_mbtiles 1.0.0 copy "flutter_map_vector_tiles_mbtiles: ^1.0.0" to clipboard
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 .mbtiles archive and serves its tiles, vector or raster, with no network involved. TMS rows are flipped to slippy-map y, and both the flat tiles table and the deduplicating map/images view schema are read through one query.
  • MbTilesMetadata: the archive's metadata table — 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:sqlite3 is 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, so open throws UnsupportedError on web — use PMTiles there. Android, iOS, macOS, Windows and Linux need no setup at all: package:sqlite3 3.x bundles a prebuilt SQLite per architecture through build hooks, which is why this package requires Flutter 3.38 / Dart 3.10.
0
likes
160
points
64
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#flutter-map #vector-tiles #mbtiles #offline #maplibre

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_map, flutter_map_vector_tiles, latlong2, sqlite3

More

Packages that depend on flutter_map_vector_tiles_mbtiles