Skip to content

Commit ebe74cd

Browse files
authored
Merge pull request #716 from ocefpaf/fix_493
Closes #493
2 parents 2fa6a3d + 7aff3c0 commit ebe74cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

folium/folium.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def fit_bounds(self, bounds, padding_top_left=None,
143143

144144
def choropleth(self, geo_data, data=None, columns=None, key_on=None,
145145
threshold_scale=None, fill_color='blue', fill_opacity=0.6,
146-
line_color='black', line_weight=1, line_opacity=1,
146+
line_color='black', line_weight=1, line_opacity=1, name=None,
147147
legend_name='', topojson=None, reset=False, smooth_factor=None,
148148
highlight=None):
149149
"""
@@ -314,11 +314,13 @@ def highlight_function(x):
314314
geo_json = TopoJson(
315315
geo_data,
316316
topojson,
317+
name=name,
317318
style_function=style_function,
318319
smooth_factor=smooth_factor)
319320
else:
320321
geo_json = GeoJson(
321322
geo_data,
323+
name=name,
322324
style_function=style_function,
323325
smooth_factor=smooth_factor,
324326
highlight_function=highlight_function if highlight else None)

0 commit comments

Comments
 (0)