Skip to content

Commit 7c589f8

Browse files
committed
Refactored create_hexbin_mapbox to use *_map chart types instead of *_mapbox
1 parent 2d6771f commit 7c589f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plotly/figure_factory/_hexbin_mapbox.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from plotly.express._core import build_dataframe
22
from plotly.express._doc import make_docstring
3-
from plotly.express._chart_types import choropleth_mapbox, scatter_mapbox
3+
from plotly.express._chart_types import choropleth_map, scatter_map
44
import narwhals.stable.v1 as nw
55
import numpy as np
66

@@ -446,7 +446,7 @@ def create_hexbin_mapbox(
446446
if range_color is None:
447447
range_color = [agg_data_frame["color"].min(), agg_data_frame["color"].max()]
448448

449-
fig = choropleth_mapbox(
449+
fig = choropleth_map(
450450
data_frame=agg_data_frame.to_native(),
451451
geojson=geojson,
452452
locations="locations",
@@ -462,15 +462,15 @@ def create_hexbin_mapbox(
462462
opacity=opacity,
463463
zoom=zoom,
464464
center=center,
465-
mapbox_style=mapbox_style,
465+
map_style=mapbox_style,
466466
title=title,
467467
template=template,
468468
width=width,
469469
height=height,
470470
)
471471

472472
if show_original_data:
473-
original_fig = scatter_mapbox(
473+
original_fig = scatter_map(
474474
data_frame=(
475475
args["data_frame"].sort(
476476
by=args["animation_frame"], descending=False, nulls_last=True

0 commit comments

Comments
 (0)