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

Keep legend from geopandas folium object #192

Open
raybellwaves opened this issue May 31, 2024 · 3 comments
Open

Keep legend from geopandas folium object #192

raybellwaves opened this issue May 31, 2024 · 3 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@raybellwaves
Copy link

Thanks for this package!

I'm trying to use this package to show a map which is from https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoDataFrame.explore.html

For unknown reason the legend isn't passed through.

notebook:

import geodatasets as gds
import geopandas as gpd
gdf = gpd.read_file(gds.data["naturalearth"]["land"]["url"])
gdf.explore(column="min_zoom")

Screenshot 2024-05-30 at 9 23 12 PM

streamlit:

from streamlit_folium import st_folium
import geodatasets as gds
import geopandas as gpd
gdf = gpd.read_file(gds.data["naturalearth"]["land"]["url"])
m = gdf.explore(column="min_zoom")
st_folium(m)

Screenshot 2024-05-30 at 9 25 03 PM

@ShootingStarD
Copy link

I have the same problem as you!

@randyzwitch
Copy link
Owner

Is the legend not passed through or is the map the wrong size?

@randyzwitch randyzwitch added bug Something isn't working enhancement New feature or request labels Jun 17, 2024
@raybellwaves
Copy link
Author

Is the legend not passed through or is the map the wrong size?

I think not passed through. I'll try and create a MCVE when I get some time

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

No branches or pull requests

3 participants