python-visualization / python-visualization/folium
Attach html to feature group
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Python
- 星标
- 7.4k
- 派生
- 2.3k
- 平均合并
- 17 小时 22 分钟
- 30 天内合并 PR
- 11
描述
I am looking to add an HTML legend at the bottom corner of each layer. The legend will be different per layer.
I can add an HTML legend to the base map using map.get_root().html.add_child(<html>), however this will only display the same text for all layer. I am looking instead for a method to attach html to a feature group, ie, something like feature_group.get_root().html.add_child(<html>).
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查现有的 map.get_root().html.add_child(<html>) 入口点以及提议的 feature_group.get_root().html.add_child(<html>) 方法。追踪 map 和 feature-group 的 root 是如何表示的,然后将“允许为每个 layer 渲染不同的 HTML 图例”定义为完成标准;issue 中未指定文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- html, javascript, python
- 领域
- data-visualization, frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100