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

20 lines
587 B
JSON

{
"expression": ["any", ["boolean", ["get", "x"]], ["boolean", ["get", "y"]]],
"inputs": [
[{}, {"properties": {"x": true, "y": true}}],
[{}, {"properties": {"x": true, "y": false}}],
[{}, {"properties": {"x": false, "y": true}}],
[{}, {"properties": {"x": false, "y": false}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "boolean"
},
"outputs": [true, true, true, false],
"serialized": ["any", ["boolean", ["get", "x"]], ["boolean", ["get", "y"]]]
}
}