If a color value is not an expression, we currently simply pass the color value of a mapbox-style as-is to the geostyler-style. However, these values might come in the format of rgba(r, g, b, a), whereas geostyler-style expects hex-values. So we have to check for those values and replace them with their hex-color value in order for geostyler to work as expected.
Expected behavior
Color values that are not hex-colors should be replaced with hex-colors when reading a mapbox style.
Bug
Describe the bug
If a color value is not an expression, we currently simply pass the color value of a mapbox-style as-is to the geostyler-style. However, these values might come in the format of
rgba(r, g, b, a)
, whereas geostyler-style expects hex-values. So we have to check for those values and replace them with their hex-color value in order for geostyler to work as expected.Expected behavior
Color values that are not hex-colors should be replaced with hex-colors when reading a mapbox style.
Example mapbox-style with rgba color values.