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

Update shaders: get 'icon-pitch-alignment' and fix for issue #9456 #9479

Merged
merged 2 commits into from
Jul 12, 2017

Conversation

ChrisLoer
Copy link
Contributor

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

@kkaefer kkaefer added the Core The cross-platform C++ core, aka mbgl label Jul 12, 2017
Copy link
Contributor

@mollymerp mollymerp left a 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!

if (layout.get<TextPitchAlignment>() == AlignmentType::Auto) {
layout.get<TextPitchAlignment>() = layout.get<TextRotationAlignment>();
}
// If unspecified `text-pitch-alignment` inherits `text-rotation-alignment`
Copy link
Contributor

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 ✂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Yup.

@@ -24,25 +24,6 @@ precision highp float;

#endif

float evaluate_zoom_function_1(const vec4 values, const float t) {
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant to include it just as part of bringing shaders back into sync as much as possible, but it's not tied to either of #9345 or #9456 so I'll take it out.

Implements 'icon-pitch-alignment' (issue #9345)
Fixes issue #9456 (map-aligned point label regression)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants