I am unable to add folium map inside tkinter widget but unable to do so. Basically I need to add attribution in the displayed maps which I am unable to do in default map tiles of tkintermapview. Can anyone guide plz.
``
import tkinter
import folium
import tkintermapview
I am unable to add folium map inside tkinter widget but unable to do so. Basically I need to add attribution in the displayed maps which I am unable to do in default map tiles of tkintermapview. Can anyone guide plz. `` import tkinter import folium import tkintermapview
root_tk = tkinter.Tk() root_tk.geometry(f"{800}x{600}")
public_provider = folium.TileLayer( tiles='https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', name="Esri World Imagery", attr='Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community' ) m = folium.Map(location=[30.7175, 76.7693], zoom_start=16, tiles=public_provider)
m.save("F:/py2exedata/map.html")
map_widget = tkintermapview.TkinterMapView(root_tk, corner_radius=0) map_widget.set_tile_server("file:///F:/py2exedata/map.html", max_zoom=22) map_widget.pack(side="top", fill="both", expand=True)
root_tk.mainloop() ``