-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Respect text-offset in line-placed symbol collision handling #4798
Comments
The above JSON should work verbatim as an integration test -- I'm holding off on adding it because I'm not sure whether it's well defined which of those two labels should be shown. cc @ansis @ChrisLoer |
It's not totally ignored: it feeds into the "top" and "bottom" values of the shaped text, which feeds into Empirically, it's still partially broken for point labels: Maybe something to do with |
I've started looking at this in conjunction with #6075 (combing text-offset with text-rotate). Point placement is looking pretty straightforward, line placement may still be a bit tricky. |
I'm going to address point-placed symbols in #6075, and leave this as the line-placed version of the bug. I started exploring an implementation, and it's tractable but a bit more than I'm ready to take on right now. Because we don't know what the offset will be until we actually project the line, we have to modify collision circles on the fly at the time we're doing projection in |
We currently do not respect the value of
text-offset
when determining whether two symbol instances collide.Example -- in this style:
We'd expect only one of the 'A' instances to be rendered, but both are:
The text was updated successfully, but these errors were encountered: