-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update shaders: get 'icon-pitch-alignment' and fix for issue #9456 #9479
Conversation
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 pending one tiny comment and one question!
src/mbgl/layout/symbol_layout.cpp
Outdated
if (layout.get<TextPitchAlignment>() == AlignmentType::Auto) { | ||
layout.get<TextPitchAlignment>() = layout.get<TextRotationAlignment>(); | ||
} | ||
// If unspecified `text-pitch-alignment` inherits `text-rotation-alignment` |
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.
I think we can remove this comment ✂️
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.
Oops! Yup.
src/mbgl/shaders/preludes.cpp
Outdated
@@ -24,25 +24,6 @@ precision highp float; | |||
|
|||
#endif | |||
|
|||
float evaluate_zoom_function_1(const vec4 values, const float t) { |
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.
is this deletion meant to be included with this PR?
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.
0ec9633
to
25fdf3b
Compare
25fdf3b
to
4a53986
Compare
This PR depends on mapbox/mapbox-gl-js#4974 and #9478 for tests. Once those go in, this will be ready -- no code changes should be necessary.
Implements 'icon-pitch-alignment' (issue #9345)
Fixes issue #9456 (map-aligned point label regression)
/cc @ansis @mollymerp