flutter_map_mbtiles 1.0.1 flutter_map_mbtiles: ^1.0.1 copied to clipboard
Mapbox MBTiles tile provider for flutter_map that can be used for a map that is 100% offline.
Basic usage #
// initiate your tile provider
final _futureTileProvider = MbTilesTileProvider
.fromSource('path/to/file.mbtiles');
@override
Widget build(BuildContext context) {
return FlutterMap(
options: MapOptions(),
children: [
TileLayer(
// use your awaited MbTilesTileProvider
tileProvider: tileProvider,
),
],
);
}
Need more information? #
- Read the README.md
- Check out the combined example app that showcases this and other flutter_map packages.