vector_map_tiles_pmtiles 1.0.1 copy "vector_map_tiles_pmtiles: ^1.0.1" to clipboard
vector_map_tiles_pmtiles: ^1.0.1 copied to clipboard

PMTiles tile provider for vector_map_tiles (flutter_map vector tiles). 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<
        PmTilesVectorTileProvider> _futureTileProvider = PmTilesVectorTileProvider
        .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 PmTilesVectorTileProvider
        tileProvider: tileProvider,
      ),
    ],
  );
}

Need more information? #

3
likes
0
pub points
74%
popularity

Publisher

verified publisherjoscha-eckert.de

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

Repository (GitHub)
View/report issues

Topics

#flutter-map #vector-map-tiles #map #pmtiles

License

unknown (license)

Dependencies

flutter, pmtiles, vector_map_tiles

More

Packages that depend on vector_map_tiles_pmtiles