#tmap4

2025-02-16

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?

#tmap #tmap4 #RStats

A map of North Carolina, using the OSM provider, showing distorted textA map of North Carolina, using the OSM provider, showing correct text.
2023-12-05

📽️ "Sharing your geospatial knowledge in the open"

It was (mostly) an improvised session showing how to create online materials with geospatial content.

Video: doi.org/10.5446/63363
Slides: jakubnowosad.com/ogh2023/#/tit

#rstats #rspatial #gischat #openscience #geocompx #tmap4

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst