Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

map.save() to support an option to export leaflet dependencies (js/css/icons) as inline base64 uris

オープン
#1,985 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
css, javascript, python

調査の方向性

map.save() から開始し、default_js と default_css の依存関係がどのように選択され、エクスポートされた HTML に書き込まれるかを確認します。必要なオプションを定義し、JavaScript、CSS、アイコンがインラインの base64 URI として埋め込まれていることを検証して、生成された地図が外部リソースや相対リソースなしで動作するようにします。

索引モデルが issue の本文から書いたものです。

説明

enhancement

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

主要言語
Python
スター
7.4k
フォーク
2.3k
平均マージ
17時間 22分
マージ済み PR(30日)
11

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python-visualization/folium のほかの issue

python-visualization/folium の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。