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

PMTiles tile provider for flutter_map. It uses HTTP Range Requests to request tiles from a single local or hosted file.

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? #

3
likes
0
pub points
71%
popularity

Publisher

verified publisherjoscha-eckert.de

PMTiles tile provider for flutter_map. It uses HTTP Range Requests to request tiles from a single local or hosted file.

Repository (GitHub)
View/report issues

Topics

#flutter-map #map #pmtiles

License

unknown (license)

Dependencies

flutter, flutter_map, pmtiles

More

Packages that depend on flutter_map_pmtiles