(self, **kwargs)
| 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) |
nothing calls this directly
no test coverage detected