Can we include an iframe in tooltip in Marker?

import folium

var=open("yolo.html", "r")

var2 = var.read()

map = folium.Map(location=[19.179180,72.972580],zoom_start=6, tiles="Mapbox Control Room")

fg = folium.FeatureGroup(name="first layer")

iframe = folium.IFrame(html=var2, width=500, height=300)

popup = folium.Tooltip(iframe)

fg.add_child(folium.Marker(location=[19.279180,72.972680], tooltip=popup))



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.