Skip to contents

Maplibre mode options. These options are specific to the maplibre mode.

Usage

tm_maplibre(style, pitch)

Arguments

style

To do: migrate with tmap styles and basemaps?

pitch

The pitch angle

Examples

# \donttest{
library(tmap)
library(tmap.mapgl)
tmap_mode("maplibre")
#>  tmap mode set to "maplibre".
tm_shape(World) +
  tm_polygons("HPI", fill.scale = tm_scale_intervals(values = "brewer.rd_yl_gn"))

tm_shape(NLD_dist) +
  tm_polygons("employment_rate",
    fill.scale = tm_scale_intervals(values = "scico.roma"),
    lwd = 0.1) +
  tm_shape(NLD_muni) +
  tm_polygons(fill = NULL, lwd = 1) +
tm_mapbox(pitch = 60) +
tm_basemap(.tmap_providers$dark)
# }