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.
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.
- vector_map_tiles_pmtiles
PMTiles tile provider for vector_map_tiles using HTTP Range Requests.
81Compare - google_maps_flutter_web
Web platform implementation of google_maps_flutter.
88Compare - google_maps_flutter_android
Android implementation of the google_maps_flutter plugin.
82Compare - google_maps_flutter_ios
iOS implementation of the google_maps_flutter plugin.
81Compare
Works with
Packages commonly used together with flutter_map_pmtiles: ones it builds on, ones built on it, and its own family.
- flutter_mapflutter_map_pmtiles depends on itPure‑Flutter map client with tile loading, markers, and gestures
- pmtilesflutter_map_pmtiles depends on itA library for parsing Protomaps PMTiles files storing raster or vector map tiles.
- flutter_map_cacheSame familyA slim caching plugin for flutter_map tile layers supporting multiple storage backends.
- flutter_map_compassSame familyA simple compass widget for flutter_map displaying rotation and resetting it when tapped.
- flutter_map_mbtilesSame familyOffline raster tile provider for flutter_map using MBTiles
- flutter_map_maplibreSame familyMapbox Vector Tiles support for flutter_map powered by native MapLibre SDKs.