To incorporate a map created with Folium into a web page, you need to follow these steps:
.html
file.html
file in the web page iframe
tag to embed the .html
file in the web page.html
file as the value of the src
attribute of the iframe
tagwidth
and height
attributes of the iframe
tag<iframe src="/prova_master/assets/charts/map.html" width="100%" height="500"></iframe>
Note that the map created with Folium was exported with width and height set to 100%. You can adjust the map dimensions by modifying the values of the width
and height
attributes of the iframe
tag.