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

set_overlay_tile_server creates empty views #126

Open
Reblaus73 opened this issue Feb 23, 2024 · 1 comment
Open

set_overlay_tile_server creates empty views #126

Reblaus73 opened this issue Feb 23, 2024 · 1 comment

Comments

@Reblaus73
Copy link

Reblaus73 commented Feb 23, 2024

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()

@JoshuaBarrass
Copy link

JoshuaBarrass commented May 1, 2024

This line needs to be changed in map_widget.py
image

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants