flutter_map_pmtiles 1.0.0 copy "flutter_map_pmtiles: ^1.0.0" to clipboard
flutter_map_pmtiles: ^1.0.0 copied to clipboard

PMTiles for flutter_map

example/example.md

Basic usage #

// initiate your tile provider
final Future<PmTilesTileProvider> _futureTileProvider = PmTilesTileProvider
        .fromSource('eitherAnUrlOrFileSystemPath');

@override
Widget build(BuildContext context) {
  return FlutterMap(
    options: MapOptions(),
    children: [
      TileLayer(
        urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
        // use your awaited PmTilesTileProvider
        tileProvider: tileProvider,
      ),
    ],
  );
}

Need more information? #