Skip to contents

tmap.mapgl will also features a couple of new map component functions that are only available for the "mapbox" and "maplibre" modes.

One is already implemented: [tm_geocoder()]

Example: metro

tmap_mode("maplibre")
#>  tmap mode set to "maplibre".

tm_shape(World) +
  tm_borders(lwd = 2) +
tm_shape(metro) +
  tm_dots(size = "pop2030", fill = "gold") +
tm_geocoder()
#> No legends available in mode "maplibre" for map variables
#> "size"