TomSchimansky / TkinterMapView

A python Tkinter widget to display tile based maps like OpenStreetMap or Google Satellite Images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The app has no map, the app is empty!

D3vMohab opened this issue · comments

The app has no map showing, does anyone know how to fix it?

The code:

import tkinter
import tkintermapview

root_tk = tkinter.Tk()
root_tk.geometry(f"{800}x{800}")
root_tk.title("map_view_example.py")


map_widget = tkintermapview.TkinterMapView(root_tk, width=800, height=600, corner_radius=0)
map_widget.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)
map_widget.set_position(48.860381, 2.338594)  # Paris, France
map_widget.set_zoom(15)
map_widget.fit_bounding_box((50, 50), (50, 50))


root_tk.mainloop()

Screenshot 2024-04-09 at 6 51 58 AM