105 lines
1.6 KiB
JSON
105 lines
1.6 KiB
JSON
{
|
|
"expression": [
|
|
"number",
|
|
[
|
|
"interpolate",
|
|
["exponential", 1],
|
|
["number", ["get", "x"]],
|
|
2,
|
|
100,
|
|
55,
|
|
200,
|
|
132,
|
|
300,
|
|
607,
|
|
400,
|
|
1287,
|
|
500,
|
|
1985,
|
|
600,
|
|
2650,
|
|
700,
|
|
3299,
|
|
800,
|
|
3995,
|
|
900,
|
|
4927,
|
|
1000,
|
|
7147,
|
|
10000,
|
|
10028,
|
|
100000,
|
|
12889,
|
|
1000000,
|
|
40000,
|
|
10000000
|
|
]
|
|
],
|
|
"inputs": [
|
|
[{}, {"properties": {"x": 2}}],
|
|
[{}, {"properties": {"x": 20}}],
|
|
[{}, {"properties": {"x": 607}}],
|
|
[{}, {"properties": {"x": 680}}],
|
|
[{}, {"properties": {"x": 4927}}],
|
|
[{}, {"properties": {"x": 7300}}],
|
|
[{}, {"properties": {"x": 10000}}],
|
|
[{}, {"properties": {"x": 20000}}],
|
|
[{}, {"properties": {"x": 40000}}]
|
|
],
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "number"
|
|
},
|
|
"outputs": [
|
|
100,
|
|
133.962,
|
|
400,
|
|
410.735,
|
|
1000,
|
|
14779.5,
|
|
99125.3,
|
|
3360628,
|
|
10000000
|
|
],
|
|
"serialized": [
|
|
"number",
|
|
[
|
|
"interpolate",
|
|
["linear"],
|
|
["number", ["get", "x"]],
|
|
2,
|
|
100,
|
|
55,
|
|
200,
|
|
132,
|
|
300,
|
|
607,
|
|
400,
|
|
1287,
|
|
500,
|
|
1985,
|
|
600,
|
|
2650,
|
|
700,
|
|
3299,
|
|
800,
|
|
3995,
|
|
900,
|
|
4927,
|
|
1000,
|
|
7147,
|
|
10000,
|
|
10028,
|
|
100000,
|
|
12889,
|
|
1000000,
|
|
40000,
|
|
10000000
|
|
]
|
|
]
|
|
}
|
|
}
|