Files
MapLibreParticleLab/metrics/integration/expression-tests/legacy/identity/boolean-default/test.json
2023-03-25 14:46:49 +01:00

25 lines
663 B
JSON

{
"expression": {"type": "identity", "property": "p", "default": true},
"inputs": [
[{}, {"properties": {}}],
[{}, {"properties": {"p": true}}],
[{}, {"properties": {"p": false}}],
[{}, {"properties": {"p": "wrong type"}}]
],
"propertySpec": {
"type": "boolean",
"property-type": "data-driven",
"expression": {"interpolated": false, "parameters": ["zoom", "feature"]}
},
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "boolean"
},
"outputs": [true, true, false, true],
"serialized": ["boolean", ["get", "p"], true]
}
}