Hi there,
In case it helps, I use Folium to create interactive maps (including heat maps and choropleth) that can be saved as an html file. I can then display the html in an iframe within an Anvil app.
App:
https://GVH4AGGPAZNZJKRO.anvil.app/E5GNT5JCGLH237YQYJQ5UGLT
You should see:
Clone (you will need the iframe component as a dependency)
iframe component:
Here is a custom component that lets you use an <iframe> to embed a URL in your app.
Just clone this app and add it as a dependency. Then create an IFrame component and set its url property (you can use the designer, or set it in code, or use a data binding):
https://anvil.works/build#clone:FKDGNIPVZUAV2GWI=35CAE2RHIKNMXJYG4YOLWDMC
Enjoy!
Note: Not all websites can be embedded in iframes. Popular websites like Google and Facebook prevent embedding for security reasons. (Likewise, you can’t …
3 Likes