Skip to content

Add icon-pitch-alignment property - #4869

Merged
ChrisLoer merged 1 commit into
masterfrom
cloer_icon_pitch_alignment
Jun 26, 2017
Merged

ChrisLoer merged 1 commit into
masterfrom
cloer_icon_pitch_alignment

Conversation

@ChrisLoer

@ChrisLoer ChrisLoer commented Jun 22, 2017 •

Copy link
Copy Markdown
Contributor

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

@ChrisLoer
ChrisLoer force-pushed the cloer_icon_pitch_alignment branch from a639058 to 3bc599a Compare June 22, 2017 22:21

@ansis ansis left a comment

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.

Looks good!

@nickidlugash nickidlugash left a comment

Copy link
Copy Markdown

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