Skip to content

Leaflet browser fails to load scripts to display map #948

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

Open
alecGraves opened this issue Apr 18, 2025 · 0 comments
Open

Leaflet browser fails to load scripts to display map #948

alecGraves opened this issue Apr 18, 2025 · 0 comments

Comments

@alecGraves
Copy link

Hello, when using leaflet, I am running into a problem viewing results. When I run leaflet() from my R command line interface, the page in the browser display is blank (white), and several "Loading failed for the <script>" errors are displayed in the browser javascript console:

> leaflet()
Loading failed for the <script> with source “file:///run/user/1000/doc/b2e131bd/lib/htmlwidgets-1.5.4/htmlwidgets.js”. [index.html:6:52](file:///run/user/1000/doc/b2e131bd/index.html)
Loading failed for the <script> with source “file:///run/user/1000/doc/b2e131bd/lib/jquery-3.6.0/jquery-3.6.0.min.js”. [index.html:7:52](file:///run/user/1000/doc/b2e131bd/index.html)
Loading failed for the <script> with source “file:///run/user/1000/doc/b2e131bd/lib/leaflet-1.3.1/leaflet.js”. [index.html:9:44](file:///run/user/1000/doc/b2e131bd/index.html)
Loading failed for the <script> with source “file:///run/user/1000/doc/b2e131bd/lib/proj4-2.6.2/proj4.min.js”. [index.html:11:44](file:///run/user/1000/doc/b2e131bd/index.html)
Loading failed for the <script> with source “file:///run/user/1000/doc/b2e131bd/lib/Proj4Leaflet-1.0.1/proj4leaflet.js”. [index.html:12:54](file:///run/user/1000/doc/b2e131bd/index.html)
Loading failed for the <script> with source “file:///run/user/1000/doc/b2e131bd/lib/leaflet-binding-2.2.2/leaflet.js”. [index.html:14:52](file:///run/user/1000/doc/b2e131bd/index.html)

on R 4.4.5, Linunx, Firefox, leaflet 2.2.2

SessionInfo():

> sessionInfo()
R version 4.4.3 (2025-02-28)
Platform: x86_64-pc-linux-gnu
Running under: elementary OS 7.1 Horus

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

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

time zone: America/Chicago
tzcode source: system (glibc)

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

other attached packages:
[1] reprex_2.1.1  leaflet_2.2.2

loaded via a namespace (and not attached):
 [1] digest_0.6.29     R6_2.5.1          fastmap_1.2.0     xfun_0.52        
 [5] magrittr_2.0.2    glue_1.6.1        htmltools_0.5.8.1 lifecycle_1.0.4  
 [9] cli_3.6.3         withr_3.0.2       jquerylib_0.1.4   compiler_4.4.3   
[13] tools_4.4.3       rlang_1.1.4       jsonlite_1.7.3    fs_1.5.2         
[17] htmlwidgets_1.5.4 crosstalk_1.2.0
@alecGraves alecGraves changed the title Leaflet webpage to load scripts to display image Leaflet browser fails to load scripts to display image Apr 18, 2025
@alecGraves alecGraves changed the title Leaflet browser fails to load scripts to display image Leaflet browser fails to load scripts to display map Apr 18, 2025
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

1 participant