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 data-driven styling support for "icon-offset" #3791

Merged
merged 6 commits into from
Dec 13, 2016
Merged

Conversation

lucaswoj
Copy link
Contributor

@lucaswoj lucaswoj commented Dec 13, 2016

@@ -295,7 +295,8 @@ class SymbolBucket {
let shapedIcon;
if (feature.icon) {
const image = icons[feature.icon];
shapedIcon = shapeIcon(image, layout);
const iconOffset = this.layers[0].getLayoutValue('icon-offset', {}, feature.properties);
Copy link
Contributor

@jfirebaugh jfirebaugh Dec 13, 2016

Choose a reason for hiding this comment

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

Second argument to getLayoutValue should be {zoom: this.zoom}.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. This will require an update of mapbox-gl-test-suite.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed & ready for final 👀

@lucaswoj
Copy link
Contributor Author

@lucaswoj lucaswoj merged commit 44d9c42 into master Dec 13, 2016
@lucaswoj lucaswoj deleted the icon-offset-dds branch December 13, 2016 23:09
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