Skip to content
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

tm_basemap not showing properly #981

Closed
PPaccioretti opened this issue Dec 7, 2024 · 1 comment
Closed

tm_basemap not showing properly #981

PPaccioretti opened this issue Dec 7, 2024 · 1 comment

Comments

@PPaccioretti
Copy link

tm_basemap it is not showing properly when an Esri basemap is used. I have the last commit installed.

library(tmap)
#> 
#> Attaching package: 'tmap'
#> The following object is masked from 'package:datasets':
#> 
#>     rivers
tm_basemap(server = "Esri.WorldImagery", zoom = 2) +
  tm_shape(World) +
  tm_polygons(fill = NULL, col = "red")

Created on 2024-12-07 with reprex v2.1.1

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.4.2 (2024-10-31 ucrt)
#>  os       Windows 10 x64 (build 19045)
#>  system   x86_64, mingw32
#>  ui       RTerm
#>  language (EN)
#>  collate  English_United States.utf8
#>  ctype    English_United States.utf8
#>  tz       America/Chicago
#>  date     2024-12-07
#>  pandoc   3.2 @ C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package           * version   date (UTC) lib source
#>  abind               1.4-8     2024-09-12 [1] CRAN (R 4.4.1)
#>  base64enc           0.1-3     2015-07-28 [1] CRAN (R 4.4.0)
#>  class               7.3-22    2023-05-03 [2] CRAN (R 4.4.2)
#>  classInt            0.4-10    2023-09-05 [1] CRAN (R 4.4.0)
#>  cli                 3.6.3     2024-06-21 [1] CRAN (R 4.4.0)
#>  codetools           0.2-20    2024-03-31 [2] CRAN (R 4.4.2)
#>  colorspace          2.1-1     2024-07-26 [1] CRAN (R 4.4.1)
#>  cols4all            0.8       2024-10-16 [1] CRAN (R 4.4.2)
#>  crosstalk           1.2.1     2023-11-23 [1] CRAN (R 4.4.0)
#>  curl                5.2.3     2024-09-20 [1] CRAN (R 4.4.1)
#>  data.table          1.16.4    2024-12-06 [1] CRAN (R 4.4.2)
#>  DBI                 1.2.3     2024-06-02 [1] CRAN (R 4.4.0)
#>  dichromat           2.0-0.1   2022-05-02 [1] CRAN (R 4.4.0)
#>  digest              0.6.37    2024-08-19 [1] CRAN (R 4.4.1)
#>  e1071               1.7-16    2024-09-16 [1] CRAN (R 4.4.1)
#>  evaluate            1.0.1     2024-10-10 [1] CRAN (R 4.4.1)
#>  fastmap             1.2.0     2024-05-15 [1] CRAN (R 4.4.0)
#>  fs                  1.6.5     2024-10-30 [1] CRAN (R 4.4.2)
#>  glue                1.8.0     2024-09-30 [1] CRAN (R 4.4.2)
#>  htmltools           0.5.8.1   2024-04-04 [1] CRAN (R 4.4.0)
#>  htmlwidgets         1.6.4     2023-12-06 [1] CRAN (R 4.4.0)
#>  KernSmooth          2.23-24   2024-05-17 [2] CRAN (R 4.4.2)
#>  knitr               1.49      2024-11-08 [1] CRAN (R 4.4.2)
#>  lattice             0.22-6    2024-03-20 [2] CRAN (R 4.4.2)
#>  leafem              0.2.3     2023-09-17 [1] CRAN (R 4.4.0)
#>  leaflegend          1.2.1     2024-05-09 [1] CRAN (R 4.4.0)
#>  leaflet             2.2.2     2024-03-26 [1] CRAN (R 4.4.0)
#>  leaflet.providers   2.0.0     2023-10-17 [1] CRAN (R 4.4.0)
#>  leafsync            0.1.0     2019-03-05 [1] CRAN (R 4.4.0)
#>  lifecycle           1.0.4     2023-11-07 [1] CRAN (R 4.4.0)
#>  lwgeom              0.2-14    2024-02-21 [1] CRAN (R 4.4.0)
#>  magrittr            2.0.3     2022-03-30 [1] CRAN (R 4.4.0)
#>  maptiles            0.7.0     2024-01-11 [1] CRAN (R 4.4.1)
#>  microbenchmark      1.4.10    2023-04-28 [1] CRAN (R 4.4.1)
#>  png                 0.1-8     2022-11-29 [1] CRAN (R 4.4.0)
#>  proxy               0.4-27    2022-06-09 [1] CRAN (R 4.4.0)
#>  purrr               1.0.2     2023-08-10 [1] CRAN (R 4.4.0)
#>  R6                  2.5.1     2021-08-19 [1] CRAN (R 4.4.0)
#>  raster              3.6-30    2024-10-02 [1] CRAN (R 4.4.1)
#>  RColorBrewer        1.1-3     2022-04-03 [1] CRAN (R 4.4.0)
#>  Rcpp                1.0.13-1  2024-11-02 [1] CRAN (R 4.4.2)
#>  reprex              2.1.1     2024-07-06 [1] CRAN (R 4.4.1)
#>  rlang               1.1.4     2024-06-04 [1] CRAN (R 4.4.0)
#>  rmarkdown           2.29      2024-11-04 [1] CRAN (R 4.4.2)
#>  rstudioapi          0.16.0    2024-03-24 [1] CRAN (R 4.4.0)
#>  s2                  1.1.7     2024-07-17 [1] CRAN (R 4.4.1)
#>  sessioninfo         1.2.2     2021-12-06 [1] CRAN (R 4.4.0)
#>  sf                  1.0-19    2024-11-05 [1] CRAN (R 4.4.2)
#>  slippymath          0.3.1     2019-06-28 [1] CRAN (R 4.4.1)
#>  sp                  2.1-4     2024-04-30 [1] CRAN (R 4.4.0)
#>  spacesXYZ           1.3-0     2024-01-23 [1] CRAN (R 4.4.0)
#>  stars               0.6-7     2024-11-07 [1] CRAN (R 4.4.2)
#>  terra               1.7-83    2024-10-14 [1] CRAN (R 4.4.1)
#>  tmap              * 3.99.9003 2024-12-07 [1] Github (r-tmap/tmap@24ab0b3)
#>  tmaptools           3.1-1     2021-01-19 [1] CRAN (R 4.4.0)
#>  units               0.8-5     2023-11-28 [1] CRAN (R 4.4.0)
#>  vctrs               0.6.5     2023-12-01 [1] CRAN (R 4.4.0)
#>  viridisLite         0.4.2     2023-05-02 [1] CRAN (R 4.4.0)
#>  withr               3.0.1     2024-07-31 [1] CRAN (R 4.4.1)
#>  wk                  0.9.4     2024-10-11 [1] CRAN (R 4.4.1)
#>  xfun                0.49      2024-10-31 [1] CRAN (R 4.4.2)
#>  XML                 3.99-0.17 2024-06-25 [1] CRAN (R 4.4.1)
#>  xml2                1.3.6     2023-12-04 [1] CRAN (R 4.4.0)
#>  yaml                2.3.10    2024-07-26 [1] CRAN (R 4.4.1)
#> 
#>  [1] C:/Users/ppaccioretti2/AppData/Local/R/win-library/4.4
#>  [2] C:/Program Files/R/R-4.4.2/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────
@Nowosad
Copy link
Member

Nowosad commented Dec 7, 2024

This is due to a bug in the terra package (now fixed in the dev version). See riatelab/maptiles#34.

@Nowosad Nowosad closed this as completed Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants