python-visualization / python-visualization/folium
map.save() to support an option to export leaflet dependencies (js/css/icons) as inline base64 uris
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 7.4k
- フォーク
- 2.3k
- 平均マージ
- 17時間 22分
- マージ済み PR(30日)
- 11
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
map.save() から開始し、default_js と default_css の依存関係がどのように選択され、エクスポートされた HTML に書き込まれるかを確認します。必要なオプションを定義し、JavaScript、CSS、アイコンがインラインの base64 URI として埋め込まれていることを検証して、生成された地図が外部リソースや相対リソースなしで動作するようにします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- css, javascript, python
- 領域
- data-visualization, frontend, web-dev
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100