r-spatial / mapview

Interactive viewing of spatial data in R
https://r-spatial.github.io/mapview/
GNU General Public License v3.0
515 stars 91 forks source link

mapview 2.11.2 doesn't show any map (while mapview 2.11.0 did) #488

Open cedricbriandgithub opened 1 month ago

cedricbriandgithub commented 1 month ago

With 2.11.2


library(sf)
library(mapview)
mapview(franconia)
packageVersion("mapview") # '2.11.2'
sessionInfo()

image

R version 4.3.2 (2023-10-31 ucrt)
latform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045) 
 Matrix products: default

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252   
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

time zone: Europe/Paris
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] mapview_2.11.0 sf_1.0-13      rj_4.0.10-2    safer_0.2.1   

with 2.11.0


library(sf)
library(mapview)
mapview(franconia)
packageVersion("mapview") # '2.110'
SessionInfo()

image

R version 4.2.3 (2023-03-15 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252   
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] mapview_2.11.2 sf_1.0-14      rj_4.0.9-12    safer_0.2.1  

For 2.11.2 setting

mapviewOptions(fgb = FALSE) 

Provides the correct rendering again

tim-salabim commented 1 month ago

Can you try with the current dev version?

remotes::install_github("r-spatial/mapview")
cedricbriandgithub commented 1 month ago

It works ! Thank you.

 library(mapview)
#GDAL version >= 3.1.0 | setting mapviewOptions(fgb = TRUE)
mapview(fanconia)
SessionInfo()

image

R version 4.3.2 (2023-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252   
[3] LC_MONETARY=French_France.1252 LC_NUMERIC=C                  
[5] LC_TIME=French_France.1252    

time zone: Europe/Paris
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] mapview_2.11.2.9000 rj_4.0.10-2         safer_0.2.1