MCPcopy
hub / github.com/python-visualization/folium / add_child

Method add_child

folium/map.py:488–495  ·  view source on GitHub ↗
(self, child, name=None, index=None)

Source from the content-addressed store, hash-verified

486 self.icon = icon
487
488 def add_child(self, child, name=None, index=None):
489 import folium.features as features
490
491 if isinstance(child, (Icon, features.CustomIcon, features.DivIcon)):
492 self.set_icon(child)
493 else:
494 super().add_child(child, name, index)
495 return self
496
497
498class Popup(MacroElement):

Callers 15

__init__Method · 0.95
renderMethod · 0.95
renderMethod · 0.45
renderMethod · 0.45
_embed_vegalite_v5Method · 0.45
_embed_vegalite_v4Method · 0.45
_embed_vegalite_v3Method · 0.45
_embed_vegalite_v2Method · 0.45
_vega_embedMethod · 0.45
_embed_vegalite_v1Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

set_iconMethod · 0.95

Tested by 15

test_feature_groupMethod · 0.36
test_custom_iconMethod · 0.36
test_color_lineFunction · 0.36
test_minimapFunction · 0.36
test_semicircleFunction · 0.36
test_float_imageFunction · 0.36
test_polyline_text_pathFunction · 0.36