plotly / plotly/plotly.py

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

Offen
#5,288 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@camdecoster arbeitet bereits daran.

Seit 01.8.2025.

bug P2 regression
Vorherrschende Sprache
Python
Sterne
18.8k
Forks
2.8k
Ø Merge
16 Std. 26 Min.
Gemergte PRs (30 T.)
21

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.