-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Error with st_folium and not with folium_static #139
Comments
Could you share the code you're using to create the map? |
This is the main function used to create the map:
There are other functions that creates polylines and markers, but they are really simples. |
@Javier-Jimenez99 @blackary But to be honest, it's kind of messy, in my case I'm working with DualMap (used for comparaison purpose) and it's a total mess when using |
Using st_folium() allows me to have some control over the height of the DualMap but it doen't render correctly and in most case the map don't work. |
I have a similar issue with Code sample:
It would be desirable to have this work in |
@mrgeorge Beside the rendering, does the slider work correctly? I tried it through geemap/leafmap and personally found it's a pain, the mouse grabs both the Map (as in panning) and the slider, so it's not good to use. I see you're injecting js through cdn, how does this work and is it smooth? does it work for multiple layers within a map (or does it spawn multiple sliders on top of each other?) |
@IndigoWizard I was seeing the same issue with the mouse grabbing the map with folium v0.14.0 but with the temporary fix described here the slider works as intended (in a jupyter notebook or in streamlit with folium_static, but not with st_folium). I haven't tested multiple layers yet. |
Any update on this? The workaround mentioned above (python-visualization/folium#1730) works fine for folium_static, but that is very limiting as it doesn't return any data and isn't responsive. When used with st_folium, there is the following console error: |
I have seen that the recommended function is
st_folium
but it doesn't render my map well. This is what happends:The height is too low and if I change the
height
parameter it does nothing. This is the error from the browser console:On the other hand, I have tryed it using
folium_static
and it works, but there are some features from st_folium that I would like to use. I don't know if some of you have faced this problem before.The text was updated successfully, but these errors were encountered: