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

add deprecation notice for mapbox traces #4783

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Oct 7, 2024

Closes #4730.

@gvwilson gvwilson requested a review from ndrezn October 8, 2024 11:48
@gvwilson gvwilson added feature something new P1 needs immediate attention labels Oct 8, 2024
@LiamConnors
Copy link
Member

LiamConnors commented Oct 8, 2024

These show up when you are using the new traces

image

Also, it looks like they are removed when we run the commands to update Plotly.js. Those classes are probably autogenerated

@gvwilson
Copy link
Contributor

gvwilson commented Oct 8, 2024

cc @archmoj

print(
"*choroplethmapbox* trace is deprecated!",
"Please consider switching to the *choroplethmap* trace type and `map` subplots.",
"Learn more at: https://plotly.com/javascript/maplibre-migration/",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All links should point to the Python documentation: https://plotly.com/python/mapbox-to-maplibre/

@@ -3,6 +3,11 @@


class Choroplethmapbox(_BaseTraceType):
print(
Copy link
Member

@ndrezn ndrezn Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use a proper warning rather than print statements

@archmoj archmoj assigned emilykl and unassigned archmoj Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P1 needs immediate attention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add deprecation warning for Mapbox traces
5 participants