-
Notifications
You must be signed in to change notification settings - Fork 83
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
set_overlay_tile_server creates empty views #126
Comments
This line needs to be changed in map_widget.py Line 505 is using a verison an antialias (Image.ANTIALIAS) that no longer exists in python (In the PIL Library). https://stackoverflow.com/questions/23113163/antialias-vs-bicubic-in-pilpython-image-library Needs to be replaced by Image.LANCZOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear all, following the example codes, it appears that the overly of tiles is not working.
When calling set_overlay_tile_server the output map is empty.
The tile-server is confirmed, because replacing 'set_overlay_tile_server' in the code here below to 'set_tile_server' shows images, but without the underlying main map.
How could this be made work? - thanks
I reduced the code to the strictly necessary:
import tkinter
from tkintermapview import TkinterMapView
root_tk = tkinter.Tk()
map_widget = TkinterMapView(root_tk)
map_widget.pack(fill="both", expand=True)
map_widget.set_overlay_tile_server("http://tiles.openseamap.org/seamark//{z}/{x}/{y}.png")
map_widget.set_position(52.96595, 4.78467)
root_tk.mainloop()
The text was updated successfully, but these errors were encountered: