Files
MapLibreParticleLab/metrics/integration/expression-tests/legacy/interval/duplicate-stops/test.json
2023-03-25 14:46:49 +01:00

23 lines
536 B
JSON

{
"expression": {
"type": "interval",
"stops": [[0, "a"], [1, "b"], [1, "c"], [2, "d"]]
},
"propertySpec": {
"type": "string",
"property-type": "data-driven",
"expression": {"interpolated": true, "parameters": ["zoom", "feature"]}
},
"inputs": [[{"zoom": 1}, {}]],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": true,
"isZoomConstant": false,
"type": "string"
},
"outputs": ["b"],
"serialized": ["step", ["zoom"], "a", 1, "b", 2, "d"]
}
}