plotly / plotly/plotly.py

Scattermap hover functionality broken when mapbox bearing is set to 90 degrees

Aperta
#5,288 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@camdecoster ci sta già lavorando.

Dal 1/8/2025.

bug P2 regression
Lingua principale
Python
Stelle
18.8k
Fork
2.8k
Merge medio
16h 26m
PR unite (30g)
21

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.