icon-color: could not parse color from value 'null' #6158
Replies: 1 comment 1 reply
-
Can you provide a jsbin to reproduce the issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am using SDF icons for a symbol layer and trying to assign color based on data accessors. Here is the layer:
I am seeing could not parse color from value 'null'. I have triple checked the geojson file I used for creating tiles and confirmed that there are no null values for properties "color". I checked the tiles metadata in pmtiles and confirmed field
color: "String"
I am using hsl format like: "hsl(11, 80%, 56%)"
I use the same method of creating geojson file and tiles for linestring data and use
line-color: ["get", "color"]
and this works perfectly fine.I have tried:
"icon-color": ["get", "color"], "icon-color": ["to-color", ["get", "color"]], "icon-color": ["to-string", ["get", "color"]]
I have tried
"icon-color": "hsl(11, 80%, 56%)"
and it works fine.Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions