I can’t manage to get a crisp basemap to display in tmap4:
Repro:
library(tmap)
library(sf)
library(maptiles)
nc = st_read(system.file("shape/nc.shp", package = "sf"))
# Left map, distorted text
tm_basemap("OpenStreetMap") +
tm_crs(3857) +
tm_shape(nc)
# Right map, correct text
plot_tiles(
get_tiles(
nc,
provider = "OpenStreetMap",
zoom = 7,
crop = TRUE,
forceDownload = TRUE,
project = FALSE
),
adjust = FALSE
)
Any idea what’s wrong?