Allow custom colors in folium.Icon
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 72/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
从 folium.Icon 的实现入手,检查颜色参数目前是如何被限制为预定义值的。添加对自定义 HTML/HEX 颜色的支持,同时保留现有标记的形状、大小、图标和外观,然后检查或添加对 issue 中示例颜色的覆盖。
由索引模型根据 Issue 内容生成。
描述
Hi,
I would like to suggest expanding the color options available in folium.Icon.
Currently, the color parameter accepts a predefined list of colors, for example:
folium.Icon(color="darkgreen", icon="glyphicon-map-marker")
It would be very useful if color could also accept custom HTML/HEX colors, for example:
folium.Icon(color="#00A6A6", icon="glyphicon-map-marker")
The goal would simply be to allow users to choose more colors while keeping exactly the same marker shape, size, icon, and appearance provided by folium.Icon.
For example, being able to use colors such as:
#00A6A6
#FF6600
would provide much more flexibility when categorizing markers on a map.
I think this could be a useful
Thank you for maintaining Folium and for considering this suggestion!
- 主要语言
- Python
- 星标
- 7.4k
- 派生
- 2.3k
- 平均合并
- 3 小时 25 分钟
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-visualization/folium 的其他 Issue
-
Make it more obvious how to add text可能已有人在做 @mosessamofficial-sys 于 220 天前认领。 未关闭documentation
难度 2/5 1-3 小时 新手友好度 68/100
python-visualization/folium#2092 · 5 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 67/100
python-visualization/folium#2278 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
python-visualization/folium#2259 ·
维护者通常 1 天内回复
-
Map output from OSM returns blocked tiles, due to defective request or not following referer-policy未关闭
难度 3/5 1-2 天 新手友好度 55/100
python-visualization/folium#2236 · 5 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 10/100
python-visualization/folium#2219 · 2 条评论 ·
维护者通常 1 天内回复
查看 python-visualization/folium 的全部 Issue
相似的 Issue
-
camlight produces degenerate target camera and light frames可能已有人在做 @kavyabhand 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
google-deepmind/mujoco_warp#1743 ·
维护者通常 1 天内回复
-
Package: Update Request
难度 2/5 1-3 小时 新手友好度 72/100
getsolus/packages#10933 · 1 条评论 ·
维护者通常 1 天内回复
-
[work-item] adam-adae-serious-events: pin missing-AESER filter semantics可能已有人在做 @muse-yamaa-bot 今天认领。 未关闭work-item
难度 1/5 1-3 小时 新手友好度 90/100
维护者通常 1 天内回复
-
[Bug]: Non-vision image fallback calls vision_analyze with an empty source for oversized inline images and tells the model the image is corrupt可能已有人在做 @liuhao1024 今天认领。 未关闭comp/agent P2 tool/vision type/bug
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#132605 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
pymc-labs/pymc-marketing#3102 · 1 条评论 ·
维护者通常 1 天内回复