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

4
likes
160
points
141
downloads

Publisher

verified publisherjoscha-eckert.de

Weekly Downloads

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