-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core] stable position of labels at tile borders in tile mode #16040
Conversation
Can be merged only after ✔️ from @mapbox/static-apis |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few nits.
@pozdnyakov sorting along edge border will give 'border' symbols preferential placement, thus, rendering result might look unnatural, e.g., swarming along edges, other than that, PR looks fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix looks good on the @mapbox/static-apis side 👍
Found few errors (visible after we've #16068 in place) will apply fix to this PR shortly. |
Hooray for the new test runner! 😁 |
In tile mode, stick to the first variable anchor if the label intersects tile borders.
…g tile borders Do not try the following variable anchors, if the first variable anchor placement failed.
c8d47ab
to
2c1cae3
Compare
In order to remove the repeated code.
9f22914
to
3efb7ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, maybe worth adding changelog entry
This PR does two things in Tile mode:
These changes allow to avoid cutting-off labels on tile borders if the variable text placement is enabled.
Fixes https://github.com/mapbox/mapbox-gl-native-team/issues/120