File tree Expand file tree Collapse file tree 4 files changed +184
-0
lines changed
test/integration/expression/tests/interpolate/projection Expand file tree Collapse file tree 4 files changed +184
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments