31 lines
723 B
JSON
31 lines
723 B
JSON
{
|
|
"expression": ["match", ["get", "x"], 0, "match", "otherwise"],
|
|
"inputs": [
|
|
[{}, {"properties": {"x": 0}}],
|
|
[{}, {"properties": {"x": 1}}],
|
|
[{}, {"properties": {"x": 0.5}}],
|
|
[{}, {"properties": {"x": "0"}}],
|
|
[{}, {"properties": {"x": false}}],
|
|
[{}, {"properties": {"x": null}}],
|
|
[{}, {"properties": {}}]
|
|
],
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "string"
|
|
},
|
|
"outputs": [
|
|
"match",
|
|
"otherwise",
|
|
"otherwise",
|
|
"otherwise",
|
|
"otherwise",
|
|
"otherwise",
|
|
"otherwise"
|
|
],
|
|
"serialized": ["match", ["get", "x"], 0, "match", "otherwise"]
|
|
}
|
|
}
|