6.0.0: Usage of maplibre with mapstyle 'carto-positron' lacks street names
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Updated plotly from 5.17 to 6.0.0. In that context I switched from scattermapbox to scattermap (maplibre rendering engine), as recommended. Mapstyle is carto-positron.
After doing this, maps on city scale started to show less street labels, see attached screenshots:
scattermapbox; old rendering engine
scattermap; maplibre rendering engine
Code (using maplibre):
fig = go.Figure()
# [...]
fig.update_layout(
# [...] other properties
map_style="carto-positron",
map = dict(
zoom = 0,
bounds = bounding_rect,
),
)
Goal: I want to keep the map style, but also have street labels shown as before (without modifying the zoom of the map).
Question: What options do exist to achieve my goal?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 Plotly 6.0.0、maplibre renderer 和 carto-positron style 重现所提供的 Python 示例,然后将其与 scattermapbox 结果和附带的截图进行比较。该 issue 未指定任何文件或测试;完成标准是在不改变地图缩放级别的情况下保留 carto-positron,同时显示预期的街道标签。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100