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

fix featuresAt with overscaled tiles #2104

Merged
merged 1 commit into from
Feb 11, 2016
Merged

Conversation

ansis
Copy link
Contributor

@ansis ansis commented Feb 10, 2016

@ansis ansis force-pushed the fix-overscaled-features-at branch 2 times, most recently from e8a0910 to 1de0a5e Compare February 11, 2016 00:11
@@ -68,7 +72,8 @@ test('featuretree point query', function(t) {

ft.query({
source: "mapbox.mapbox-streets-v5",
scale: 724.0773439350247,
scale: 1.4142135624,
tileSize: 512,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was the scale wrong before?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.4142135624 * 512 = 724.0773439350247

I split the number into two numbers in #2052 because I thought it would be clearer and closer to how we treat conversions elsewhere.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand. This is much more clear 👍

@lucaswoj
Copy link
Contributor

Can you add regression tests for the two bugs fixed? Otherwise this looks 🚢.

@ansis
Copy link
Contributor Author

ansis commented Feb 11, 2016

Added two tests for tileAt to cover the two bugs.

@ansis ansis merged commit 25e5ed9 into master Feb 11, 2016
@ansis ansis removed the in progress label Feb 11, 2016
@ansis ansis deleted the fix-overscaled-features-at branch February 11, 2016 20:05
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.

featuresAt doesn't return anything on overscaled / underscaled tiles
2 participants