Skip to content
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

Styles are not working with streamlit #737

Open
amjadraza opened this issue May 10, 2024 · 1 comment
Open

Styles are not working with streamlit #737

amjadraza opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@amjadraza
Copy link

Environment Information

  • leafmap version: lates
  • Python version: 3.11
  • Operating System: Linux

Description

The Color Styles are not working with streamlit UI. I have followed below two approaches

1- Using m.add_gdf(gdf, layer_name = "ABD", style_callback= lambda feature: style_function_custom(feature, "f1"))
2. Converting GDF to GeoJSON and Adding Explicit properties of color for each feature into feature collection

Looks like, m.to_streamlit is not handling the Polygone colors.

@amjadraza amjadraza added the bug Something isn't working label May 10, 2024
@giswqs
Copy link
Member

giswqs commented May 11, 2024

Can you provide a complete example that can reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants