Skip to content

fix featuresAt with overscaled tiles - #2104

Merged
ansis merged 1 commit into
masterfrom
fix-overscaled-features-at
Feb 11, 2016
Merged

ansis merged 1 commit into
masterfrom
fix-overscaled-features-at

Conversation

@ansis

@ansis ansis commented Feb 10, 2016

Copy link
Copy Markdown
Contributor

@ansis
ansis force-pushed the fix-overscaled-features-at branch 2 times, most recently from e8a0910 to 1de0a5e Compare February 11, 2016 00:11
source: "mapbox.mapbox-streets-v5",
scale: 724.0773439350247,
scale: 1.4142135624,
tileSize: 512,

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@ansis
ansis force-pushed the fix-overscaled-features-at branch from 1de0a5e to 25e5ed9 Compare February 11, 2016 19:55
@ansis

ansis commented Feb 11, 2016

Copy link
Copy Markdown
Contributor Author

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