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

26 lines
567 B
JSON

{
"propertySpec": {"type": "string"},
"expression": ["coalesce", ["get", "a"], ["get", "b"]],
"inputs": [
[{}, {"properties": {"a": "one"}}],
[{}, {"properties": {"b": "two"}}],
[{}, {"properties": {"b": 5}}],
[{}, {"properties": {}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "string"
},
"outputs": [
"one",
"two",
"5",
""
],
"serialized": ["to-string", ["coalesce", ["get", "a"], ["get", "b"]]]
}
}