27 lines
597 B
JSON
27 lines
597 B
JSON
{
|
|
"expression": [
|
|
"let",
|
|
"x",
|
|
["number", ["get", "a"]],
|
|
["interpolate", ["linear"], ["zoom"], 0, 0, 30, ["var", "x"]]
|
|
],
|
|
"inputs": [[{"zoom": 5}, {"a": 30}]],
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": false,
|
|
"type": "number"
|
|
},
|
|
"outputs": [
|
|
{"error": "Expected value to be of type number, but found null instead."}
|
|
],
|
|
"serialized": [
|
|
"let",
|
|
"x",
|
|
["number", ["get", "a"]],
|
|
["interpolate", ["linear"], ["zoom"], 0, 0, 30, ["var", "x"]]
|
|
]
|
|
}
|
|
}
|