MBStyles ignores alpha component in colors, preferring explicit property

Description

In MapBox styles a fill or stroke opacity can be provided by using both an explicit property (e.g., "fill-opacity") and by just setting the alpha of the color. Playing with Maputnik it seems the two are multiplicative, the opacity of a fill changes by tuning both the alpha component of the fill color, and the fill opacity itself.

In the implementation of MBStyles, the alpha component of the color is lost instead, and it's referring to the explicit opacity property instead.

Environment

None

Assignee

Unassigned

Reporter

Andrea Aime

Triage

None

Components

Priority

Medium
Configure