Skip to content

Layers with umlauts in name not showing on map #496

Open
@fdetsch

Description

@fdetsch

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  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions