You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I posted this bug in The Carpentries Slack, and Toby Hodges replied:
Indeed, it looks like mapview uses leaflet.js as a backend, and that is not loaded into the lesson website. As I understand it, the site template in the varnish package would need to be adjusted to be able to include the required JS library/libraries for lessons that want to use mapview. This could be achieved in a similar way to how mathjax is loaded in to displayor LaTeX equations.
Please open an issue on the Workbench repositor so we can discuss whether this is something that should be included in varnish, or whether we should instead recommend that you develop a customised version of the template for this purpose
The text was updated successfully, but these errors were encountered:
I’m trying to create a lesson that uses R package mapview to render an interactive map. mapview uses leaflet.js
If I create a normal R Markdown page, and use knitr to create an html page, the mapview map is included in the html. Scroll to bottom of page to see interactive map of L.A.
demo: https://wykhuh.github.io/map-view_demo/
code: https://github.com/wykhuh/map-view_demo/blob/main/mapview.Rmd
When I use the use the same R Markdown code to create a lesson via Sandpaper, the interactive map is blank. The div for the interactive map is created, but the map is not rendered.
demo: https://wykhuh.github.io/carpentries_mapview/introduction.html
code: https://github.com/wykhuh/carpentries_mapview/blob/main/episodes/introduction.Rmd
I posted this bug in The Carpentries Slack, and Toby Hodges replied:
Indeed, it looks like mapview uses leaflet.js as a backend, and that is not loaded into the lesson website. As I understand it, the site template in the varnish package would need to be adjusted to be able to include the required JS library/libraries for lessons that want to use mapview. This could be achieved in a similar way to how mathjax is loaded in to displayor LaTeX equations.
Please open an issue on the Workbench repositor so we can discuss whether this is something that should be included in varnish, or whether we should instead recommend that you develop a customised version of the template for this purpose
The text was updated successfully, but these errors were encountered: