这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix build + add news #1047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Imports:
leaflegend,
leaflet (>= 2.0.2),
leafsync,
maptiles,
methods,
rlang,
sf (>= 0.9-3),
Expand All @@ -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,
Expand Down
15 changes: 14 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 0 additions & 1 deletion R/tmapOnLoad.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@


#' @rdname tmap_providers
#' @name .tmap_providers
#' @export
.tmap_providers <- new.env(FALSE, parent=globalenv())

Expand Down
1 change: 1 addition & 0 deletions R/tmap_providers.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ reference:
- theme_ps
- tmap_tip
- tmap_icons
- tmap_providers

navbar:
structure:
Expand Down
Loading