Skip to content
pubscout

flutter_map_pmtiles

1.1.0, released 3 weeks ago by joscha-eckert.de

PMTiles tile provider for flutter_map supporting local or hosted files.

$ flutter pub add flutter_map_pmtiles
Source repository

What it does

Provides a TileProvider for flutter_map that enables rendering tiles from a single PMTiles file using HTTP Range Requests. It supports loading sources from URLs, local file system paths, or a direct PmTilesArchive.

AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a flutter_map application and want to render map tiles from PMTiles files.
  • You need to request tiles from a single local or hosted file via HTTP Range Requests.

Skip it when

  • You are using mapping libraries other than flutter_map.
  • You do not use PMTiles archives for your map data.

Strengths

  • Allows serving map tiles from a single local or hosted file.
  • Integrates smoothly with flutter_map via TileLayer.

Weaknesses

  • Limited to flutter_map and PMTiles archives.
  • Requires awaiting a future to initialize the tile provider.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Add flutter_map and flutter_map_pmtiles to dependencies in pubspec.yaml.

final Future<PmTilesTileProvider> _futureTileProvider = PmTilesTileProvider.fromSource('https://example.com/useYourOwnHostedPMTilesFile.pmtiles');

Alternatives

Packages that do the same job and could replace flutter_map_pmtiles.

Works with

Packages commonly used together with flutter_map_pmtiles: ones it builds on, ones built on it, and its own family.