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

25 lines
663 B
JSON

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