Skip to content

Commit 558f164

Browse files
author
Tom Schimansky
committed
improved map_widget code and added utility functions
1 parent 7a4969e commit 558f164

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ https://pypi.org/project/tkintermapview/
3636
Import tkinter as normal and from tkintermapview import the TkinterMapView widget.
3737
```python
3838
import tkinter
39-
from tkintermapview import TkinterMapView
39+
import tkintermapview
4040
```
4141
---
4242
### Create the widget
@@ -51,7 +51,7 @@ root_tk.geometry(f"{800}x{600}")
5151
root_tk.title("map_view_example.py")
5252

5353
# create map widget
54-
map_widget = TkinterMapView(root_tk, width=800, height=600, corner_radius=0)
54+
map_widget = tkintermapview.TkinterMapView(root_tk, width=800, height=600, corner_radius=0)
5555
map_widget.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)
5656
```
5757
If you also call `root_tk.mainloop()` at the end, this is already a fully working example to test the map widget.
@@ -167,7 +167,7 @@ map_widget.add_left_click_map_command(left_click_event)
167167
The callback function will get the decimal coordinates of the clicked location as a tuple.
168168

169169
---
170-
### Utility methods of the map widget
170+
### Utility methods
171171

172172
The following methods can be useful when working with coordinates and address strings,
173173
they all use the geocoder library with the OSM provider: https://geocoder.readthedocs.io/providers/OpenStreetMap.html:

0 commit comments

Comments
 (0)