flutter_map_pmtiles 1.0.4 copy "flutter_map_pmtiles: ^1.0.4" to clipboard
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.

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(
        // use your awaited PmTilesTileProvider
        tileProvider: tileProvider,
      ),
    ],
  );
}

Need more information? #

3
likes
160
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