Support interpolate, step and case expressions for color and number values
Closed this issue · 2 comments
Values like these:
'fill-opacity': [
'interpolate',
['linear'],
['zoom'],
0,
1,
15.5,
1,
16,
0,
22,
0
],
currently just return null because they are nether a map nor a number:
dart-vector-tile-renderer/lib/src/themes/paint_factory.dart
Lines 72 to 84 in 434f11a
Color values are handled in the same way.
I am willing to work on this (and already started fiddling around a bit), if you don't mind!
Disclaimer: I am doing this for one of our client projects and will likely only cover the things we "need" (like linear interpolation, while not implementing exponential) but also try my best to create groundwork that makes adding more functionality easier.
Fantastic - feel free to contribute via a pull request!
I am doing this for one of our client projects and will likely only cover the things we "need"
Of course, I wouldn't expect to contribute anything that I didn't need either. :D
Closing this one off since it's stale. Feel free to open a PR if/when it makes sense.