Skip to content

Commit 3e31ffd

Browse files
committed
fill=True override if fill_color
1 parent 14bd915 commit 3e31ffd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

folium/utilities.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,17 @@ def _parse_path(**kw):
7777
Parse leaflet `Path` options.
7878
http://leafletjs.com/reference-1.2.0.html#path
7979
80+
The presence of `fill_color` will override `fill=False`.
81+
8082
"""
8183
color = kw.pop('color', '#3388ff')
82-
fill_color = kw.pop('fill_color', color)
83-
fill = False if not fill_color else True
84+
fill_color = kw.pop('fill_color', False)
85+
if fill_color:
86+
fill = True
87+
elif not fill_color:
88+
fill_color = color
89+
fill = kw.pop('fill', False)
90+
8491
return {
8592
'stroke': kw.pop('stroke', True),
8693
'color': color,

0 commit comments

Comments
 (0)