-
Hello good people! I got tired of switching between browser and editor to style the map, so I build a simple sidebar that contains colorpickers to edit and preview colors live. The issue I encountered: not able to get and preview the initial color if color is not a simple HEX. 'background-color': { base: 1, stops: [ [1, '#000'], [15, '#fff'] ] } It is not necessary to show the color by any means (although annoying since colorpickers then default to Please confirm, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Not sure I understand the initial problem statement, why not use maputnik for example? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure, but maybe you could use the style spec package to evaluate the expressions, see here: |
Beta Was this translation helpful? Give feedback.
I'm not sure, but maybe you could use the style spec package to evaluate the expressions, see here:
https://github.com/maplibre/maplibre-style-spec/blob/main/test/integration/expression/expression.test.ts