20 lines
459 B
JSON
20 lines
459 B
JSON
{
|
|
"expression": ["number", ["get", "x"], -1],
|
|
"inputs": [
|
|
[{}, {"properties": {"x": 1}}],
|
|
[{}, {"properties": {"x": "1"}}],
|
|
[{}, {"properties": {"x": false}}],
|
|
[{}, {"properties": {"x": null}}]
|
|
],
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "number"
|
|
},
|
|
"outputs": [1, -1, -1, -1],
|
|
"serialized": ["number", ["get", "x"], -1]
|
|
}
|
|
}
|