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

Added local overlay tiles, rendering even if overlay is unavailable #77

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

amamic1803
Copy link

Hi,

I've added support for local images as overlay tiles. I also edited that part of code to show map even if overlay tile isn't available for that location. Finally, I added 2 lines to example in README.md to show how local overlays can be used.

I've tested and everything appears to work correctly as I wanted. Don't think I broke anything.

Regards,
Antonio Mamić

@amamic1803
Copy link
Author

I fixed zooming with mouse wheel on windows. Before, it would sometimes skip a zoom level, now when scrolling, it must go through all zoom levels. (I only did this in the part of code meant for windows because I don't know how it works on other systems).

@amamic1803
Copy link
Author

When changing window/widget size, minimum zoom level must be increased sometimes to avoid not having enough tiles to fill the screen. It was set to only check width, but I fixed it so it also checks height now as it should. Also when changing window/widget size, even if zoom change isn't needed, map must be redrawn to place top left tile in top left corner, otherwise it would stay at old location and empty tiles would be shown. I fixed that also.

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

Successfully merging this pull request may close these issues.

None yet

1 participant