Quarto website not displaying leaflet maps in HTML pages #1026
-
EDIT: A reproducible example is available here: https://github.com/jack-davison/quarto-leaflet Hello, I've been writing a Quarto website and notice something strange, and wonder if this is expected behaviour or if something is going wrong. I have some webpages that have leaflet maps, and when I knit those pages they correctly display in the "viewer" pane. However, when I open the corresponding HTML page in the What may be going on here? In Viewer: HTML It doesn't matter if I knit a page individually or if I use |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
It may be that leaflet requires being "served" from a web server rather than accessed from the local filesystem. If you could create a small git repo that exhibits this problem we can take a closer look and verify what the problem is. |
Beta Was this translation helpful? Give feedback.
-
I've attempted to reproduce this locally and the map always appears (even when opening directly from the filesystem). Tested on Chrome, Firefox, and Safari on OS X as well as Chrome and Edge on Windows. If you could post a repro that exhibits this problem we'll take a closer look. |
Beta Was this translation helpful? Give feedback.
-
Find a reproducible example here: https://github.com/jack-davison/quarto-leaflet The issue appears to be if |
Beta Was this translation helpful? Give feedback.
-
Okay, thanks so much for your patience and for these repro cases. This was actually two bugs for the price of one! (9bb09f5 and 8bf851e) Fixes are available in 0.9.487: https://github.com/quarto-dev/quarto-cli/releases/latest |
Beta Was this translation helpful? Give feedback.
Okay, thanks so much for your patience and for these repro cases. This was actually two bugs for the price of one! (9bb09f5 and 8bf851e)
Fixes are available in 0.9.487: https://github.com/quarto-dev/quarto-cli/releases/latest