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

Calculate default zoom level in quick search #51

Merged
merged 1 commit into from
Jan 3, 2016

Conversation

mkouhia
Copy link

@mkouhia mkouhia commented Jan 2, 2016

Calculate longitude span for area, then get such zoom level, where tile width
is above this span.

Previous implementation loads unnecessarily large tiles, if area is located at
the border of two large tiles. Hence, download more smaller tiles (typically
1, 2 or 4).

Calculate longitude span for area, then get such zoom level, where tile width
is above this span.

Previous implementation loads unnecessarily large tiles, if area is located at
the border of two large tiles.  Hence, download more smaller tiles (typically
1, 2 or 4).
@tomasbedrich
Copy link
Owner

Good job mkouhia, thank you! I have to admit that geodetic computation are not my strongpoint. :)

tomasbedrich added a commit that referenced this pull request Jan 3, 2016
Calculate default zoom level in quick search
@tomasbedrich tomasbedrich merged commit 2e538f1 into tomasbedrich:master Jan 3, 2016
@tomasbedrich tomasbedrich added this to the 3.5 milestone Jan 3, 2016
@mkouhia mkouhia deleted the quick_search_zoom branch January 3, 2016 08:39
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

2 participants