You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have the same issue with Flask
I managed to get a google font working, if I source the font and add the <style> manually AFTER I include the map, like so
@BibMartin I am clueless when it comes to css and styling. Do you think this is easily fixed? If not let's tag v0.2.1 and start addressing this creating a test using @amitbend#192 (comment)
I guess this is resolved by v0.2.0 because you can update yourself the version of bootstrap (or any other folium lib) in doing:
folium_map = folium.Map()
folium_figure = m.get_root()
folium_figure.header._children['bootstrap'] = folium.element.JavascriptLink(
'{{another url of your choice}}')
Note that I know few about Flask and Django. But if you want to ensure there's no interaction between Javascript inside and outside the map, I would include the map as an iframe. I guess you can use directly :
<html>
... whatever your template ...
{{ folium_map._repr_html_() }}
</html>
@amitbend , can you tell me whether this works ; I guess @ocefpaf is in the mood of closing issues 👻 .
Activity
BibMartin commentedon Aug 19, 2015
Hi @amitbend ,
can you prodive a sample of code, and show what lines are in conflict, please ?
amitbend commentedon Aug 19, 2015
Sure!
this is what i see in the html file created by folium
and this the map config and creation
i'm using django so i included with this
{% include 'map.html' %}tagfenimore commentedon Oct 24, 2015
Hi, I have the same issue with Flask
I managed to get a google font working, if I source the font and add the
<style>manually AFTER I include the map, like soocefpaf commentedon Dec 4, 2015
@BibMartin I am clueless when it comes to css and styling. Do you think this is easily fixed? If not let's tag
v0.2.1and start addressing this creating a test using @amitbend #192 (comment)BibMartin commentedon Dec 4, 2015
I guess this is resolved by
v0.2.0because you can update yourself the version of bootstrap (or any other folium lib) in doing:Note that I know few about Flask and Django. But if you want to ensure there's no interaction between Javascript inside and outside the map, I would include the map as an iframe. I guess you can use directly :
@amitbend , can you tell me whether this works ; I guess @ocefpaf is in the mood of closing issues 👻 .
ocefpaf commentedon Dec 4, 2015
At least tagging them 😁
ocefpaf commentedon Feb 12, 2016
Closing this. If
v0.2.0still have that problem please re-open.