-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
@@ -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); |
There was a problem hiding this comment.
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}
.
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed & ready for final 👀
cb9ac81
to
823803d
Compare
Replaces #3729
Related to mapbox/mapbox-gl-test-suite#194