(self, **kwargs)
| 860 | return get_bounds(self.data, lonlat=True) |
| 861 | |
| 862 | def render(self, **kwargs): |
| 863 | self.parent_map = get_obj_in_upper_tree(self, Map) |
| 864 | # Need at least one feature, otherwise style mapping fails |
| 865 | if (self.style or self.highlight) and self.data["features"]: |
| 866 | mapper = GeoJsonStyleMapper(self.data, self.feature_identifier, self) |
| 867 | if self.style: |
| 868 | self.style_map = mapper.get_style_map(self.style_function) |
| 869 | if self.highlight: |
| 870 | self.highlight_map = mapper.get_highlight_map(self.highlight_function) |
| 871 | super().render() |
| 872 | |
| 873 | |
| 874 | TypeStyleMapping = Dict[str, Union[str, List[Union[str, int]]]] |
nothing calls this directly
no test coverage detected