vector_map_tiles_pmtiles
1.5.2, released 3 weeks ago by joscha-eckert.de
PMTiles tile provider for vector_map_tiles using HTTP Range Requests.
What it does
Provides a tile provider for vector_map_tiles and flutter_map to support PMTiles. It enables requesting vector tiles from a single local file or a hosted remote file using HTTP Range Requests.
AI-written summary of version 1.5.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using flutter_map and vector_map_tiles in your application
- You need to render vector map tiles from local or hosted PMTiles files
Skip it when
- You are not using flutter_map or vector_map_tiles
- Your map tiles are served through standard raster tile URLs instead of PMTiles archives
Strengths
- Supports loading tiles from both local file system paths and remote URLs
- Integrates seamlessly with flutter_map and vector_map_tiles
- Includes Protomaps basemap themes out of the box
Weaknesses
- Mapbox, OpenMapTiles, and standard raster map styles are not compatible with Protomaps styles
- Requires awaiting a future to initialize the tile provider
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add flutter_map and vector_map_tiles_pmtiles to your pubspec.yaml and initialize the tile provider from a source URL or local path.
final _futureTileProvider = PmTilesVectorTileProvider.fromSource('https://example.com/useYourOwnHostedPMTilesFile.pmtiles');Alternatives
Packages that do the same job and could replace vector_map_tiles_pmtiles.
- flutter_map
If you only need standard map layers and markers without vector tile or PMTiles support.
90Compare
Works with
Packages commonly used together with vector_map_tiles_pmtiles: ones it builds on, ones built on it, and its own family.
- vector_map_tilesvector_map_tiles_pmtiles depends on itA flutter_map plugin that enables the use of vector tiles.
- vector_tile_renderervector_map_tiles_pmtiles depends on itVector tile renderer for creating map tile images or writing to a canvas.
- pmtilesvector_map_tiles_pmtiles depends on itA library for parsing Protomaps PMTiles files storing raster or vector map tiles.
- vector_map_tiles_mbtilesSame familyMapbox MBTiles vector tile provider for flutter_map for offline maps