Skip to content

Commit 9b7ef53

Browse files
committed
move to interpolate / projection
1 parent 5d25160 commit 9b7ef53

File tree

4 files changed

+184
-0
lines changed

4 files changed

+184
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"propertySpec": {
3+
"type": "projection",
4+
"property-type": "data-constant",
5+
"expression": {
6+
"interpolated": true,
7+
"parameters": [
8+
"zoom"
9+
]
10+
}
11+
},
12+
"expression": [
13+
"interpolate",
14+
[
15+
"linear"
16+
],
17+
[
18+
"zoom"
19+
],
20+
0,
21+
"vertical-perspective",
22+
4,
23+
"mercator"
24+
],
25+
"inputs": [
26+
[
27+
{
28+
"zoom": 5
29+
},
30+
{}
31+
]
32+
],
33+
"expected": {
34+
"compiled": {
35+
"result": "success",
36+
"isFeatureConstant": true,
37+
"isZoomConstant": false,
38+
"type": "projection"
39+
},
40+
"outputs": [
41+
"mercator"
42+
]
43+
}
44+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"propertySpec": {
3+
"type": "projection",
4+
"property-type": "data-constant",
5+
"expression": {
6+
"interpolated": true,
7+
"parameters": [
8+
"zoom"
9+
]
10+
}
11+
},
12+
"expression": [
13+
"interpolate",
14+
[
15+
"linear"
16+
],
17+
[
18+
"zoom"
19+
],
20+
0,
21+
"vertical-perspective",
22+
10,
23+
"mercator"
24+
],
25+
"inputs": [
26+
[
27+
{
28+
"zoom": 5
29+
},
30+
{}
31+
]
32+
],
33+
"expected": {
34+
"compiled": {
35+
"result": "success",
36+
"isFeatureConstant": true,
37+
"isZoomConstant": false,
38+
"type": "projection"
39+
},
40+
"outputs": [
41+
[
42+
"vertical-perspective",
43+
"mercator",
44+
0.5
45+
]
46+
]
47+
}
48+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"propertySpec": {
3+
"type": "projection",
4+
"property-type": "data-constant",
5+
"expression": {
6+
"interpolated": true,
7+
"parameters": [
8+
"zoom"
9+
]
10+
}
11+
},
12+
"expression": [
13+
"interpolate",
14+
[
15+
"linear"
16+
],
17+
[
18+
"zoom"
19+
],
20+
8,
21+
"vertical-perspective",
22+
10,
23+
"mercator"
24+
],
25+
"inputs": [
26+
[
27+
{
28+
"zoom": 5
29+
},
30+
{}
31+
]
32+
],
33+
"expected": {
34+
"compiled": {
35+
"result": "success",
36+
"isFeatureConstant": true,
37+
"isZoomConstant": false,
38+
"type": "projection"
39+
},
40+
"outputs": [
41+
"vertical-perspective"
42+
]
43+
}
44+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"propertySpec": {
3+
"type": "projection",
4+
"property-type": "data-constant",
5+
"expression": {
6+
"interpolated": true,
7+
"parameters": [
8+
"zoom"
9+
]
10+
}
11+
},
12+
"expression": [
13+
"interpolate",
14+
[
15+
"linear"
16+
],
17+
[
18+
"zoom"
19+
],
20+
0,
21+
"mercator",
22+
10,
23+
"mercator"
24+
],
25+
"inputs": [
26+
[
27+
{
28+
"zoom": 5
29+
},
30+
{}
31+
]
32+
],
33+
"expected": {
34+
"compiled": {
35+
"result": "success",
36+
"isFeatureConstant": true,
37+
"isZoomConstant": false,
38+
"type": "projection"
39+
},
40+
"outputs": [
41+
[
42+
"mercator",
43+
"mercator",
44+
0.5
45+
]
46+
]
47+
}
48+
}

0 commit comments

Comments
 (0)