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

Method add_child

folium/plugins/dual_map.py:104–109  ·  view source on GitHub ↗

Add object `child` to the first map and store it for the second.

(self, child, name=None, index=None)

Source from the content-addressed store, hash-verified

102 return out
103
104 def add_child(self, child, name=None, index=None):
105 """Add object `child` to the first map and store it for the second."""
106 self.m1.add_child(child, name, index)
107 if index is None:
108 index = len(self.m2._children)
109 self.children_for_m2.append((child, name, index))
110
111 def render(self, **kwargs):
112 super().render(**kwargs)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected