python-visualization / python-visualization/folium
map.save() to support an option to export leaflet dependencies (js/css/icons) as inline base64 uris
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 7.4k
- Fork
- 2.3k
- Merge medio
- 17h 22m
- PR unite (30g)
- 11
Descrizione
Is your feature request related to a problem? Please describe.
folium maps exported as html still depend on external leaflet dependencies (either from internet or on relative paths - manual modification is needed)
Describe the solution you'd like
Something similar to knit in RStudio (which produces the html with the inlined resources). I believe the R leaflet package is self-contained (it contains leaflet's resources), so for this to work in the same manner in folium, additional options to override default_js/default_css may be necessary (i.e. to point them to relative/static paths).
Describe alternatives you've considered
Out of various leaflet wrappers, RStudio's implementation is the closest.
Additional context
(Could attach one of html files created through RStudio's leaflet, if anyone needs it)
Implementation
Possibly, just to gauge the interest for now
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Partire da map.save() e verificare come vengono selezionate le dipendenze default_js e default_css e scritte nell’HTML esportato. Definire l’opzione richiesta e verificare che JavaScript, CSS e icone siano incorporati come URI base64 inline, in modo che la mappa risultante funzioni senza risorse esterne o relative.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- css, javascript, python
- Ambito
- data-visualization, frontend, web-dev
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100