Files
MapLibreParticleLab/metrics/integration/expression-tests/format/implicit/test.json
2023-03-25 14:46:49 +01:00

60 lines
1.1 KiB
JSON

{
"expression": ["get", "p"],
"propertySpec": {
"type": "formatted"
},
"inputs": [
[{}, {"properties": {}}],
[{}, {"properties": {"p": 0}}],
[{}, {"properties": {"p": "a"}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "formatted"
},
"outputs": [
{
"sections": [
{
"text": "",
"image": null,
"scale": null,
"fontStack": null,
"textColor": null
}
]
},
{
"sections": [
{
"text": "0",
"image": null,
"scale": null,
"fontStack": null,
"textColor": null
}
]
},
{
"sections": [
{
"text": "a",
"image": null,
"scale": null,
"fontStack": null,
"textColor": null
}
]
}
],
"serialized": [
"format",
["get", "p"],
{}
]
}
}