Files
MapLibreParticleLab/platform/android/docs/data/PMTiles.md
Bart Louwers c79b6dcf52 Add end-of-file-fixer pre-commit hook (#3176)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-24 20:43:50 +01:00

1.1 KiB

PMTiles

Starting MapLibre Android 11.7.0, using PMTiles as a data source is supported. You can prefix your vector tile source with pmtiles:// to load a PMTiles file. The rest of the URL continue with be https:// to load a remote PMTiles file, asset:// to load an asset or file:// to load a local PMTiles file.

Oliver Wipfli has made a style available that combines a Protomaps basemap togehter with Foursquare's POI dataset. It is available in the wipfli/foursquare-os-places-pmtiles repository on GitHub. The style to use is

https://raw.githubusercontent.com/wipfli/foursquare-os-places-pmtiles/refs/heads/main/style.json

The neat thing about this style is that it only uses PMTiles vector sources. PMTiles can be hosted with a relatively simple file server (or file hosting service) instead of a more complex specialized tile server.

![Screenshot of PMTiles based style using Protomaps basemap with Foursquare POIs]({{ s3_url("pmtiles-demo.png") }}){ width="300" }