Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scattermap Class doesn't render #4775

Closed
yusuf-jkhan1 opened this issue Oct 1, 2024 · 3 comments
Closed

Scattermap Class doesn't render #4775

yusuf-jkhan1 opened this issue Oct 1, 2024 · 3 comments
Assignees
Labels
bug something broken P2 considered for next cycle

Comments

@yusuf-jkhan1
Copy link

yusuf-jkhan1 commented Oct 1, 2024

Python 3.10.12
Plotly 5.24.0 and 5.24.1
Tested on Windows 11 and Ubuntu 22.04

pip install 'plotly==5.24.0'

#Example from docs, https://plotly.com/python/tile-scatter-maps/
import plotly.graph_objects as go

fig = go.Figure(go.Scattermap(
        lat=['45.5017'],
        lon=['-73.5673'],
        mode='markers',
        marker=go.scattermap.Marker(
            size=14
        ),
        text=['Montreal'],
    ))

fig.update_layout(
    hovermode='closest',
    map=dict(
        bearing=0,
        center=go.layout.map.Center(
            lat=45,
            lon=-73
        ),
        pitch=0,
        zoom=5
    )
)

fig.show()

Doesn't render anything. It seems like px_scattermap is also having a similar issue.

@LiamConnors
Copy link
Member

@yusuf-jkhan1 thanks for reporting this. are you running these in a notebook? does the Plotly toolbar show even if the map doesn't? If so, what version of Plotly.js do you see if you hover on the Plotly logo there.

image

@gvwilson gvwilson added bug something broken P2 considered for next cycle labels Oct 2, 2024
@gaardhus
Copy link

I'm also having this problem, both in a notebook and in a dash app, seems like the plotly.js version might be outdated for me?

Image

@ndrezn
Copy link
Member

ndrezn commented Oct 24, 2024

Closing in favour of #4827

@ndrezn ndrezn closed this as completed Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

6 participants