MCPcopy Create free account
hub / github.com/python-visualization/folium / render

Method render

folium/plugins/search.py:139–153  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

137 ), "Search can only be added to folium Map objects."
138
139 def render(self, **kwargs):
140 if isinstance(self.layer, GeoJson):
141 keys = tuple(self.layer.data["features"][0]["properties"].keys())
142 elif isinstance(self.layer, TopoJson):
143 obj_name = self.layer.object_path.split(".")[-1]
144 keys = tuple(
145 self.layer.data["objects"][obj_name]["geometries"][0][
146 "properties"
147 ].keys()
148 ) # noqa
149 else:
150 keys = None
151 self.test_params(keys=keys)
152
153 super().render(**kwargs)

Callers

nothing calls this directly

Calls 1

test_paramsMethod · 0.95

Tested by

no test coverage detected