Scattermap hover functionality broken when mapbox bearing is set to 90 degrees
未关闭
@camdecoster 已经在做这个了。
开始于 2025年8月1日。
bug
P2
regression
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Code example:
import plotly.graph_objects as go
import pandas as pd
import numpy as np
df = pd.DataFrame({
'lat': np.random.uniform(chicago_lat - lat_range, chicago_lat + lat_range, 50),
'lon': np.random.uniform(chicago_lon - lon_range, chicago_lon + lon_range, 50),
})
figure = go.Figure(
go.Scattermap(
lat=df['lat'],
lon=df['lon'],
mode='markers',
)
)
figure.update_layout(map_bearing=90)
figure.show()
When I move the mouse over different locations, I cannot see the hover information for the location I am hovering over. Instead, it is stuck on a location at the edge of the map. This does not happen when map_bearing is set to 80, 70, 45. The screen recording below demonstrates the issue.
https://github.com/user-attachments/assets/0d5299c3-83cf-430a-a856-8999dbf48ee6
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。