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

Leaflet maps encode data directly into the HTML pages using the R package #58

Open
pauldpickell opened this issue Sep 28, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pauldpickell
Copy link
Contributor

Leaflet maps created using the R leaflet package encode the json and geojson data directly into the built html pages. This causes some chapter html files like /docs/raster-analysis-and-terrain-modelling.html to be very heavy (74 MB) and take a long time to load.

Need to think about what the fix is here.

Do we need to manually configure these leaflet maps to properly reference the resources in /data/?

Do we make the leaflets separate html pages and convert the existing maps to static images for the chapter html pages with a URL to the leaflet in the figure caption?

May also need to implement lazy loading on some of these content heavy chapters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants