Skip to content

add deprecation notice for mapbox traces #4783

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

Closed
wants to merge 10 commits into from
5 changes: 5 additions & 0 deletions packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

"*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/

)

# class properties
# --------------------
Expand Down
5 changes: 5 additions & 0 deletions packages/python/plotly/plotly/graph_objs/_densitymapbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@


class Densitymapbox(_BaseTraceType):
print(
"*densitymapbox* trace is deprecated!",
"Please consider switching to the *densitymap* trace type and `map` subplots.",
"Learn more at: https://plotly.com/javascript/maplibre-migration/",
)

# class properties
# --------------------
Expand Down
5 changes: 5 additions & 0 deletions packages/python/plotly/plotly/graph_objs/_scattermapbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@


class Scattermapbox(_BaseTraceType):
print(
"*scattermapbox* trace is deprecated!",
"Please consider switching to the *scattermap* trace type and `map` subplots.",
"Learn more at: https://plotly.com/javascript/maplibre-migration/",
)

# class properties
# --------------------
Expand Down