-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style function not working when soley add to 'feature_group_to_add' parameter #121
Comments
same problem in here. When I try to load the styles, it doesnt work, but when it is written there it is ok style=LAYERSTYLE[k] ma.m2.add_child(layers[k].add_child(folium.GeoJson(data=files[k], style_function=lambda x: style))) # every layer has an default orange color ma.m2.add_child(layers[k].add_child(folium.GeoJson(data=files[k], style_function=lambda x:{"fillColor": "green"}))) # this is works. Even I get "make this notebook trusted" message Quite strange: When I define the style dict in the "bla" it works, when I load it it is not This is ok: This is still not: |
I am having the same issue. It's a deal breaker for if I'm able to use streamlit or not |
Same here, which prevent me from using Choropleth. Use case : I was hoping that the "feature_group_to_add" could help me with Choropleth updates given a slider. |
Hey, @KeonwooChoi, @csipapicsa, @TaylerUva, @BastienGauthier This has been solved in the latest PR. (see #146 ) |
Hello Im gonna using
feature_group_to_add
param rathern than add to map directly because of loading speed.But I found that I have to add feature group to map before using
st_folium
. And it also causing slow speed. Here's my codeThis code works, but slow
This code not works
The text was updated successfully, but these errors were encountered: