-
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
Only shape point placement symbols #8706
Conversation
This is working really well now. The only failing test is a render test |
… of zero behavior for point and line symbol placement
#3725 is the PR that introduced the |
@malwoodsantoro @ryanhamley It is unclear how this change affects existing styles that may be depending on this behavior. Maybe someone from @mapbox/map-design-team can comment on whether this change will require style changes for common use cases. |
@mapbox/map-design-team Does anyone have feedback on this change? |
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.
Looks good to me, pending benchmark results to make sure we don't regress on performance.
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.
Change makes sense and looks good 👍
Launch Checklist
Fixes #8575
text-max-width
was set to zero. This was caused by a faulty check in the shaping code which equated "no max width" with "no shaping should occur". This PR fixes the issue and corrects the check by explicitly checking forline
andline-center
symbol placement and not shaping those symbols (e.g. only shape text when the symbol is placed as a point).@mapbox/studio
and/or@mapbox/maps-design
if this PR includes style spec changes@mapbox/gl-native
if this PR includes shader changes or needs a native portChangelog
Fix bug in which explicit newline characters were ignored when text-max-width was set to zero