Files
MapLibreParticleLab/metrics/integration/expression-tests/step/basic/test.json
2023-03-25 14:46:49 +01:00

28 lines
655 B
JSON

{
"expression": [
"number",
["step", ["number", ["get", "x"]], 11, 0, 111, 1, 1111]
],
"inputs": [
[{}, {"properties": {"x": -1.5}}],
[{}, {"properties": {"x": -0.5}}],
[{}, {"properties": {"x": 0}}],
[{}, {"properties": {"x": 0.5}}],
[{}, {"properties": {"x": 1}}],
[{}, {"properties": {"x": 1.5}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "number"
},
"outputs": [11, 11, 111, 111, 1111, 1111],
"serialized": [
"number",
["step", ["number", ["get", "x"]], 11, 0, 111, 1, 1111]
]
}
}