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

Method style_function

folium/features.py:1662–1670  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1660 return fill_color, fill_opacity
1661
1662 def style_function(x):
1663 color, opacity = color_scale_fun(x)
1664 return {
1665 "weight": line_weight,
1666 "opacity": line_opacity,
1667 "color": line_color,
1668 "fillOpacity": opacity,
1669 "fillColor": color,
1670 }
1671
1672 def highlight_function(x):
1673 return {"weight": line_weight + 2, "fillOpacity": fill_opacity + 0.2}

Callers 1

style_dataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected