-
I would like to create a color map which can be used to color polygons based on a variable value. Does leafmap colormap module has similar functions as this: import branca.colormap as cm def fill_color(feature): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can the leafmap colormap moule |
Beta Was this translation helpful? Give feedback.
You can the leafmap colormap moule
get_palette(palette, n_colors)
function to generate a linear color palette and then assign colors to your data. Similar to what I did in this web app https://streamlit.gishub.org. I will try to add a function to make it easier to use when I have time.Code: https://github.com/giswqs/streamlit-geospatial/blob/master/apps/housing.py#L336