r-tmap/tmap

PMTiles support

Geschlossen

#1.229 geöffnet am 03.03.2026

 (16 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)R (120 Forks)batch import
Help wanted

Repository-Metriken

Stars
 (852 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

For quick large interactive maps, PMTiles seems the way to go, thanks to @walkerke for making this possible in R via pmtiles: https://github.com/walkerke/pmtiles

I also found another pmtiles package: https://github.com/nptscot/pmtiles Do these packages do the same @wangzhao0217 and @Robinlovelace ?

How to integrate this in tmap? (@tim-salabim @Nowosad)

I guess that we could regard a pmtiles server as a 'shape'. So

tm_shape(pmtiles_folder) + tm_polygons(fill = "varA")

should work.

Which modes?

  • Certainly mapbox and maplibre because the functionality is already there via mapgl.
  • Leaflet? Is there any R-implementation?
  • "plot" mode? I guess it could be possible to get an sf object from a pmtiles server with a certain bounding box.

Do you know this @walkerke or @tim-salabim ?

I am still very new to pmtiles, so happy to learn about this.

Contributor Guide