I'd like to do a calculation inside an expression. Is this possbile? The code I have for now doesn't work. This example works fine:
'circle-radius': {
'base': 1.5,
'stops': [
[0, 0],
[20, 180]
]
}
But when I do a calculation inside, it doesnt work:
'circle-radius': {
'base': 1.5,
'stops': [
[0, 0],
[20, ['*', 2, 90]]
]
},
And what I'm really trying to do in the end is adding another variable from my data.
'circle-radius': {
'base': 1.5,
'stops': [
[0, 0],
[20, ['*', 2, ["get", "amount"]]]
]
},
Thanks!