flutter_map_pmtiles 1.0.3 copy "flutter_map_pmtiles: ^1.0.3" to clipboard
flutter_map_pmtiles: ^1.0.3 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 _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
150
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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_map, pmtiles

More

Packages that depend on flutter_map_pmtiles