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

Strange featuresAt behavior #1529

Closed
anandthakker opened this issue Sep 23, 2015 · 4 comments
Closed

Strange featuresAt behavior #1529

anandthakker opened this issue Sep 23, 2015 · 4 comments
Assignees
Labels

Comments

@anandthakker
Copy link
Contributor

Apologies for the incredibly vague subject line.

The problem: using a source of US county boundaries made with tippecanoe, featuresAt returns empty most of the time, and when it doesn't, it's significantly offset from the passed-in point.

Reproduction here: http://bl.ocks.org/anandthakker/67ff3076df1235c3be44. Put your mouse in western Maryland and look in North Carolina.

featureat

@mourner mourner self-assigned this Sep 23, 2015
@mourner
Copy link
Member

mourner commented Sep 23, 2015

Weird. I'll investigate.

@mourner
Copy link
Member

mourner commented Sep 23, 2015

OK, found the issue — featuresAt don't calculate the coordinates correctly if the tile extent is not the default 4096 (in this case it's 1024).

@mourner
Copy link
Member

mourner commented Sep 23, 2015

Fixed in #1530

@anandthakker
Copy link
Contributor Author

@mourner Well, that's a little embarrassing since I actually introduced a couple of those 4096 magic numbers myself. Thanks for the quick fix!

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

No branches or pull requests

3 participants