Skip to content

Commit 7bd9e8e

Browse files
authored
LayerControl: fix visibility on multiple renders (#1674)
1 parent 4f9416f commit 7bd9e8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

folium/map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def reset(self):
158158

159159
def render(self, **kwargs):
160160
"""Renders the HTML representation of the element."""
161+
self.reset()
161162
for item in self._parent._children.values():
162163
if not isinstance(item, Layer) or not item.control:
163164
continue

0 commit comments

Comments
 (0)