Skip to content

Commit 13b47b5

Browse files
committed
Closes #42. Fixed incorrect assignment to wrong property name.
1 parent 575d2dc commit 13b47b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

highcharts_maps/chart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ def from_geopandas(cls,
11541154
if not options.chart:
11551155
options.chart = ChartOptions()
11561156

1157-
options.chart.map_data = MapData.from_geodataframe(as_gdf = gdf)
1157+
options.chart.map = MapData.from_geodataframe(as_gdf = gdf)
11581158

11591159
instance = cls(**chart_kwargs)
11601160
instance.options = options
@@ -1428,7 +1428,7 @@ def from_map_data(cls,
14281428
if not options.chart:
14291429
options.chart = ChartOptions()
14301430

1431-
options.chart.map_data = map_data
1431+
options.chart.map = map_data
14321432

14331433
instance = cls(**chart_kwargs)
14341434
instance.options = options

highcharts_maps/options/chart/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def map(self) -> Optional[str | MapData | AsyncMapData | VariableName | List[Map
5656
@map.setter
5757
def map(self, value):
5858
if not value:
59-
self._map_data = None
59+
self._map = None
6060
elif checkers.is_iterable(value, forbid_literals = (str, bytes, dict)):
6161
cleaned_value = []
6262
for item in value:

0 commit comments

Comments
 (0)