(x)
| 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} |