flutter_map_pmtiles 1.0.4 flutter_map_pmtiles: ^1.0.4 copied to clipboard
PMTiles tile provider for flutter_map. It uses HTTP Range Requests to request tiles from a single local or hosted file.
Basic usage #
// initiate your tile provider
final _futureTileProvider = PmTilesTileProvider
.fromSource('eitherAnUrlOrFileSystemPath');
@override
Widget build(BuildContext context) {
return FlutterMap(
options: MapOptions(),
children: [
TileLayer(
// use your awaited PmTilesTileProvider
tileProvider: tileProvider,
),
],
);
}
Need more information? #
- Read the README.md
- Check out the combined example app that showcases this and other flutter_map packages.