-
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
Fix transitions from property default values #2769
Comments
Hi! I've done a little research and found, that I've tried to set paint declaration to default after https://github.com/mapbox/mapbox-gl-js/blob/master/js/style/style_layer.js#L111 like this: this._paintDeclarations[klass || ''][name] = new StyleDeclaration(this._paintSpecifications[name]); but it does not affect transition. So am I missing something? Should we explicitly define default paint properties in for (paintName in this._paintSpecifications) {
this.setPaintProperty(paintName, this._paintSpecifications[paintName].default);
} |
@stepankuzmin I would suggest exploring |
It seems that there is no transition from defaults because there is no Defining default paint properties in |
Noticed while working on #2762.
map.setPaintProperty("circle", "circle-color", "red")
when called on this layer will interpolate black to red correctly:However, with this layer it'll just jump from black to red without a transition:
The expected behavior is for both to have an interpolated transition.
The text was updated successfully, but these errors were encountered: