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

Layers with umlauts in name not showing on map #496

Open
fdetsch opened this issue Nov 28, 2024 · 3 comments
Open

Layers with umlauts in name not showing on map #496

fdetsch opened this issue Nov 28, 2024 · 3 comments

Comments

@fdetsch
Copy link
Collaborator

fdetsch commented Nov 28, 2024

Special case for certain, but layers are not showing on the interactive map if the layer.name includes German umlauts (and possibly other special characters). The initial zoom, legend, and displayed layer name are correct. Output of sessionInfo() attached below.

library(mapview)

mapview(
  breweries
  , layer.name = "Bräustätten" # works for "Braeustaetten"
)
image



sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.1 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.12.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C          
 [3] LC_TIME=C.UTF-8        LC_COLLATE=C.UTF-8    
 [5] LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
 [7] LC_PAPER=C.UTF-8       LC_NAME=C             
 [9] LC_ADDRESS=C           LC_TELEPHONE=C        
[11] LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

time zone: Europe/Berlin
tzcode source: system (glibc)

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

other attached packages:
[1] mapview_2.11.2

loaded via a namespace (and not attached):
 [1] xfun_0.49               raster_3.6-30          
 [3] htmlwidgets_1.6.4       lattice_0.22-6         
 [5] tzdb_0.4.0              leaflet.providers_2.0.0
 [7] vctrs_0.6.5             tools_4.4.2            
 [9] crosstalk_1.2.1         stats4_4.4.2           
[11] curl_6.0.1              parallel_4.4.2         
[13] tibble_3.2.1            proxy_0.4-27           
[15] geometa_0.8-0           fansi_1.0.6            
[17] pkgconfig_2.0.3         KernSmooth_2.23-24     
[19] satellite_1.0.5         RColorBrewer_1.1-3     
[21] leaflet_2.2.2           assertthat_0.2.1       
[23] lifecycle_1.0.4         compiler_4.4.2         
[25] munsell_0.5.1           terra_1.7-83           
[27] keyring_1.3.2           codetools_0.2-20       
[29] htmltools_0.5.8.1       class_7.3-22           
[31] yaml_2.3.10             pillar_1.9.0           
[33] crayon_1.5.3            jquerylib_0.1.4        
[35] openssl_2.2.2           classInt_0.4-10        
[37] digest_0.6.37           sf_1.0-19              
[39] fastmap_1.2.0           grid_4.4.2             
[41] colorspace_2.1-1        cli_3.6.3              
[43] magrittr_2.0.3          base64enc_0.1-3        
[45] XML_3.99-0.17           utf8_1.2.4             
[47] leafem_0.2.3            e1071_1.7-16           
[49] readr_2.1.5             scales_1.3.0           
[51] sp_2.1-4                rmarkdown_2.29         
[53] httr_1.4.7              askpass_1.2.1          
[55] png_0.1-8               hms_1.1.3              
[57] evaluate_1.0.1          knitr_1.49             
[59] rlang_1.1.4             Rcpp_1.0.13-1          
[61] glue_1.8.0              DBI_1.2.3              
[63] ows4R_0.4               rstudioapi_0.17.1      
[65] jsonlite_1.8.9          R6_2.5.1               
[67] units_0.8-5  
@tim-salabim
Copy link
Member

tim-salabim commented Dec 2, 2024

Works on my machine. Can you please try to install both mapview and leafem from github and see whether that helps?


sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.5 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so;  LAPACK version 3.10.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=de_DE.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=de_DE.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Berlin
tzcode source: system (glibc)

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

other attached packages:
 [1] exactextractr_0.10.0 leastcostpath_2.0.12 mapview_2.11.2.9000 
 [4] stars_0.6-6          sf_1.0-19            abind_1.4-8         
 [7] terra_1.7-83         shiny_1.9.1          leafem_0.2.3.9013   
[10] leaflet_2.2.2       

loaded via a namespace (and not attached):
 [1] bslib_0.8.0               raster_3.6-30            
 [3] htmlwidgets_1.6.4         lattice_0.22-6           
 [5] leaflet.providers_2.0.0   vctrs_0.6.5              
 [7] tools_4.4.2               crosstalk_1.2.1          
 [9] generics_0.1.3            stats4_4.4.2             
[11] parallel_4.4.2            tibble_3.2.1             
[13] proxy_0.4-27              fansi_1.0.6              
[15] pkgconfig_2.0.3           Matrix_1.7-1             
[17] KernSmooth_2.23-24        satellite_1.0.5          
[19] RColorBrewer_1.1-3        lifecycle_1.0.4          
[21] farver_2.1.2              compiler_4.4.2           
[23] mapedit_0.6.0             munsell_0.5.1            
[25] codetools_0.2-20          httpuv_1.6.15            
[27] htmltools_0.5.8.1         class_7.3-22             
[29] sass_0.4.9                later_1.3.2              
[31] pillar_1.9.0              crayon_1.5.3             
[33] jquerylib_0.1.4           classInt_0.4-10          
[35] cachem_1.1.0              iterators_1.0.14         
[37] foreach_1.5.2             mime_0.12                
[39] tidyselect_1.2.1          digest_0.6.37            
[41] dplyr_1.1.4               fastmap_1.2.0            
[43] grid_4.4.2                colorspace_2.1-1         
[45] cli_3.6.3                 magrittr_2.0.3           
[47] base64enc_0.1-3           utf8_1.2.4               
[49] e1071_1.7-16              withr_3.0.1              
[51] scales_1.3.0              promises_1.3.0           
[53] sp_2.1-4                  igraph_2.1.1             
[55] png_0.1-8                 leaflet.extras_2.0.1.9000
[57] memoise_2.0.1             miniUI_0.1.1.1           
[59] rlang_1.1.4               Rcpp_1.0.13-1            
[61] xtable_1.8-4              glue_1.8.0               
[63] DBI_1.2.3                 rstudioapi_0.17.0        
[65] jsonlite_1.8.9            R6_2.5.1                 
[67] units_0.8-5              

@fdetsch
Copy link
Collaborator Author

fdetsch commented Dec 6, 2024

Nope, this has no effect – at least not with the default branches.

@tim-salabim
Copy link
Member

Can you open the map in your browser and see if there are any errors in the browser console?

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