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

Use true bounds of screen for caching zoomed tiles #5

Open
grassick opened this issue Apr 10, 2014 · 1 comment
Open

Use true bounds of screen for caching zoomed tiles #5

grassick opened this issue Apr 10, 2014 · 1 comment

Comments

@grassick
Copy link
Member

Currently can cache up to 4x more than necessary for barely visible tiles.

@mbriau
Copy link
Contributor

mbriau commented Apr 13, 2014

I made some progress regarding this issue. I now test if a tile is inside the screen when zooming in and out.

The next step would be to apply some rounding to the tests. Maybe a bound at x.95 should be considered x + 1 instead and a bound at y.05 should be sonsiderer like (y-1).99999999.

If we do that, it would be important not to do it when zooming out... or else we could make the only tile disappear with a very low zoom level.

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