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 Query point translation for multi-point geometry #7581

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

asheemmamoowala
Copy link
Contributor

Fixes #6833

This wasn't an issue with circle-translate but with how query geometry is translated when it contains more than a single point.

The Point#_mult method modifies the point, which causes the query geometry to be multiplied by pixelsToTileUnits multiple times here:

translatedRing.push(ring[k].sub(pt._mult(pixelsToTileUnits)));

  • briefly describe the changes in this PR
  • write tests for all new functionality

@asheemmamoowala asheemmamoowala requested review from mourner and ansis and removed request for mourner November 10, 2018 01:29
src/style/query_utils.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants