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

Method render

folium/features.py:862–871  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

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
874TypeStyleMapping = Dict[str, Union[str, List[Union[str, int]]]]

Callers

nothing calls this directly

Calls 5

get_style_mapMethod · 0.95
get_highlight_mapMethod · 0.95
get_obj_in_upper_treeFunction · 0.90
GeoJsonStyleMapperClass · 0.85
renderMethod · 0.45

Tested by

no test coverage detected