Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
19 lines
635 B
JSON
19 lines
635 B
JSON
{
|
|
"expression": ["slice", ["get", "val"], ["get", "index"]],
|
|
"inputs": [
|
|
[{}, {"properties": {"val": "0123456789", "index": 0}}],
|
|
[{}, {"properties": {"val": "0123456789", "index": 4}}],
|
|
[{}, {"properties": {"val": "0123456789", "index": 99}}],
|
|
[{}, {"properties": {"val": "0123456789", "index": -2}}]
|
|
],
|
|
"expected": {
|
|
"serialized": ["slice", ["get", "val"], ["get", "index"]],
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "value"
|
|
},
|
|
"outputs": ["0123456789", "456789", "", "89"]
|
|
}
|
|
} |