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

Smart tile iteration #8

Open
Maximkaaa opened this issue Dec 29, 2023 · 0 comments
Open

Smart tile iteration #8

Maximkaaa opened this issue Dec 29, 2023 · 0 comments
Labels
enhancement Improve an existing feature

Comments

@Maximkaaa
Copy link
Owner

Current implementation of TileScheme::iter_tiles has some limitations:

  1. Tiles are iterated over rectangular are with constant resolution. This means that when the map view is tilted over x-axis, far away tiles are displayed with too high resolution, and we need to load extra tiles that are not actually displayed on the current view.
  2. It always returns None if the map view Crs is not the same as the tile scheme Crs.

We need to find a smarter way to iterate over tiles. For starter, MapView::position and MapView::resolution are always the values at the center of the screen (map). So we can start from the center and go out to the sides, checking for every tile if it's still in the view.

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

No branches or pull requests

1 participant