Skip to content
This repository was 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
ChrisLoer merged 2 commits into
masterfrom
cloer_9345_9456
Jul 12, 2017
Merged

Update shaders: get 'icon-pitch-alignment' and fix for issue #9456#9479
ChrisLoer merged 2 commits into
masterfrom
cloer_9345_9456

Conversation

@ChrisLoer
Copy link
Copy Markdown
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
Copy Markdown
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!

Comment thread 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`
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops! Yup.


#endif

float evaluate_zoom_function_1(const vec4 values, const float t) {
Copy link
Copy Markdown
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
Copy Markdown
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