MCPcopy Index your code
hub / github.com/python-visualization/folium / render

Method render

folium/plugins/dual_map.py:111–124  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

109 self.children_for_m2.append((child, name, index))
110
111 def render(self, **kwargs):
112 super().render(**kwargs)
113
114 for child, name, index in self.children_for_m2:
115 if child._id in self.children_for_m2_copied:
116 # This map has been rendered before, child was copied already.
117 continue
118 child_copy = deep_copy(child)
119 if isinstance(child_copy, LayerControl):
120 child_copy.reset()
121 self.m2.add_child(child_copy, name, index)
122 # m2 has already been rendered, so render the child here:
123 child_copy.render()
124 self.children_for_m2_copied.append(child._id)
125
126 def fit_bounds(self, *args, **kwargs):
127 for m in (self.m1, self.m2):

Callers

nothing calls this directly

Calls 3

deep_copyFunction · 0.90
resetMethod · 0.80
add_childMethod · 0.45

Tested by

no test coverage detected