Skip to content
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

Add icon-pitch-alignment property #4869

Merged
merged 1 commit into from
Jun 26, 2017
Merged

Conversation

ChrisLoer
Copy link
Contributor

@ChrisLoer ChrisLoer commented Jun 22, 2017

Following discussion at #4120, adds an icon-pitch-alignment property that follows the same behavior as text-pitch-alignment. Existing behavior is that icon pitch alignment just matches icon rotation alignment (map or viewport).

#4120 (comment) is requesting circle-pitch-alignment, but it hints at how the same property could be useful for icons -- you might want to place an icon "flat" on the map to go under something else, but still have the icon oriented "upright" (ie "viewport aligned").

This PR depends on #4864 going in first, because it adds a test that fails without the fix for #4860 (in fact this is how I discovered #4860).

/cc @ansis @nickidlugash

Copy link
Contributor

@ansis ansis 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!

Copy link

@nickidlugash nickidlugash left a comment

Choose a reason for hiding this comment

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

LGTM

@ChrisLoer ChrisLoer merged commit ec306ba into master Jun 26, 2017
@jfirebaugh jfirebaugh deleted the cloer_icon_pitch_alignment branch June 26, 2017 21:11
lora-reames added a commit to lora-reames/DefinitelyTyped that referenced this pull request Aug 28, 2017
Add new icon-pitch-alignment and circle-pitch-alignment properties mapbox/mapbox-gl-js#4869 mapbox/mapbox-gl-js#4871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants