Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The app has no map, the app is empty! #132

Open
D3vMohab opened this issue Apr 9, 2024 · 0 comments
Open

The app has no map, the app is empty! #132

D3vMohab opened this issue Apr 9, 2024 · 0 comments

Comments

@D3vMohab
Copy link

D3vMohab commented Apr 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant