diff --git a/DESCRIPTION b/DESCRIPTION index 8112e5fc7..89796b78d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -39,6 +39,7 @@ Imports: leaflegend, leaflet (>= 2.0.2), leafsync, + maptiles, methods, rlang, sf (>= 0.9-3), @@ -47,14 +48,13 @@ Imports: s2, tmaptools (>= 3.1), units (>= 0.6-1), - servr, + servr Suggests: av, colorspace, ggplot2, gifski, knitr, - maptiles, png, shiny, terra, diff --git a/NEWS.md b/NEWS.md index 9cd9a222b..837e78bd3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,18 @@ # tmap 4.1 (in development) -- [!] basemaps in plot mode much sharper, added tmap_providers() + +This fixes a few regressions in the tmap v4 release and adds improvements. + +- [!] basemaps in plot mode much sharper, added `tmap_providers()` (#1041, #1042) + +- `tm_remove_layer()` works again in Shiny (#1044) + +- `tm_logo()` works again in view mode (#1038). + +- Few fixes in legend computing and size (#1039, #1032) + +- Improve documentation (#1033, thanks @nickbearman) + +- Improve some v3->v4 upgrade messages for a smoother transition. # tmap 4.0 diff --git a/R/tmapOnLoad.R b/R/tmapOnLoad.R index 049248171..b3d634009 100644 --- a/R/tmapOnLoad.R +++ b/R/tmapOnLoad.R @@ -47,7 +47,6 @@ #' @rdname tmap_providers -#' @name .tmap_providers #' @export .tmap_providers <- new.env(FALSE, parent=globalenv()) diff --git a/R/tmap_providers.R b/R/tmap_providers.R index 5f5cf9a83..9613b34db 100644 --- a/R/tmap_providers.R +++ b/R/tmap_providers.R @@ -18,6 +18,7 @@ tmap_provider_credits = function(provider) { #' @param as.list Should the output be returned as list where names are provider names? By default `TRUE` when `credits` is also `TRUE`. #' @return list or vector (see `as.list`) with providers (or credits). [tmap_provider_credits()] returns the credits text for the provided provider. #' @export +#' @name tmap_providers tmap_providers = function(mode, credits = FALSE, as.list = credits) { if (missing(mode)) mode = getOption("tmap.mode") gs = tmap_graphics_name(mode) diff --git a/_pkgdown.yml b/_pkgdown.yml index 0bb87e740..40f7d6d91 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -116,6 +116,7 @@ reference: - theme_ps - tmap_tip - tmap_icons + - tmap_providers navbar: structure: