Getting error with read_osm
from the tmaptools package in R
. Want to generate a static map with background layer.
Error is present even when using the example NLD_muni
data from tmap package
library(tmap)
library(tmaptools)
library(OpenStreetMap)
tmap_mode("plot")
data(NLD_muni)
test <- tmaptools::read_osm(NLD_muni, type = "esri", zoom = NULL)
Error
Error in FUN(X[[i]], ...) : Sorry, parameter type `NA' is ambiguous or not supported.
Expected to load a basemap
Could use tmap_mode("view")
and created interactive plot but ideally can make a static plot.