Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core][tile mode] Reduce cut-off labels #16336

Merged
merged 5 commits into from
Mar 25, 2020
Merged

Conversation

pozdnyakov
Copy link
Contributor

Place tile intersecting labels first, across all the layers. Thus, we reduce the amount of label cut-offs in Tile mode.

Before, labels were arranged within one symbol layer (one bucket), which was not enough for several symbol layers being placed at the same time.

Partial fix for https://github.com/mapbox/mapbox-gl-native-team/issues/223

@pozdnyakov pozdnyakov self-assigned this Mar 23, 2020
@pozdnyakov pozdnyakov requested a review from alexshalamov March 23, 2020 21:07
@pozdnyakov pozdnyakov force-pushed the mikhail_placement_fixes branch from fa41a2d to 11ca744 Compare March 24, 2020 10:54
@pozdnyakov pozdnyakov marked this pull request as ready for review March 24, 2020 10:55
@pozdnyakov pozdnyakov force-pushed the mikhail_placement_fixes branch from 11ca744 to eced1c9 Compare March 24, 2020 11:33
src/mbgl/text/placement.cpp Outdated Show resolved Hide resolved
src/mbgl/text/placement.cpp Show resolved Hide resolved
@pozdnyakov pozdnyakov force-pushed the mikhail_placement_fixes branch 2 times, most recently from 33ac39a to b7c79af Compare March 25, 2020 11:22
…yers

Thus, we reduce the amount of label cut-offs in Tile mode.

Before, labels were arranged within one symbol layer (one bucket),
which was not enough for several symbol layers being placed at the
same time.
Thus we obviate lots of repeated operations for already placed symbols.
@pozdnyakov pozdnyakov force-pushed the mikhail_placement_fixes branch from b7c79af to 4b178ef Compare March 25, 2020 11:55
@pozdnyakov pozdnyakov merged commit d4db3b1 into master Mar 25, 2020
@pozdnyakov pozdnyakov deleted the mikhail_placement_fixes branch March 25, 2020 13:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants