Scattermap hover functionality broken when mapbox bearing is set to 90 degrees
Abierto
@camdecoster ya está trabajando en esto.
Desde el 1/8/2025.
bug
P2
regression
- Lenguaje dominante
- Python
- Estrellas
- 18.8k
- Forks
- 2.8k
- Merge medio
- 16 h 26 min
- PR fusionados (30 d)
- 21
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.