Skip to content

Commit 495b331

Browse files
authored
Merge pull request #2145 from hansthen/fix_for_add_child_not_returning_self
Fix add_child on Marker not returning self
2 parents c1210ce + ffafdda commit 495b331

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
@@ -445,6 +445,7 @@ def add_child(self, child, name=None, index=None):
445445
self.set_icon(child)
446446
else:
447447
super().add_child(child, name, index)
448+
return self
448449

449450

450451
class Popup(MacroElement):

0 commit comments

Comments
 (0)