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

Cherry pick global symbol query and tests #6699

Merged
merged 3 commits into from
May 18, 2018
Merged

Conversation

ChrisLoer
Copy link
Contributor

This is a cherry-pick of the global symbol query behavior and associated tests to the release-boba GL JS branch so that we can port mapbox/mapbox-gl-native#11742 to the native release-boba branch.

cc @anandthakker @ansis

Addresses hover flicker from issues #5887 and #5506.
Also fixes issue #5475/#6298, so that symbols that bleed over tile boundaries don't get missed. Under the hood, there are some good simplifications:
 - No round-tripping of viewport query coordinates through tile space
 - No more need to merge duplicate results from the same symbol showing up in multiple tiles
 - All querying-related data can now be indexed with a bucket instance id and a feature index
 - `Placement` now manages lifetime of any data needed to query against its CollisionIndex
 - CollisionBoxArray no longer involved in querying at all
Matches topDownComparator of FeatureIndex.
Previous behavior was string sorting, which could provide unexpected results with multi-digit feature indices.
Update query tests to match new order.
Copy link
Contributor

@mollymerp mollymerp left a comment

Choose a reason for hiding this comment

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

🍏

@ChrisLoer ChrisLoer merged commit 021c582 into release-boba May 18, 2018
@ChrisLoer ChrisLoer deleted the boba-query-tests branch May 18, 2018 23:16
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.

2 participants