File tree Expand file tree Collapse file tree 8 files changed +408
-0
lines changed
test/integration/render-tests/debug
collision-lines-non-center-alignment
collision-lines-pitched-2
collision-lines-simple-words-pitched
collision-lines-simple-words Expand file tree Collapse file tree 8 files changed +408
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : 8 ,
3
+ "metadata" : {
4
+ "test" : {
5
+ "collisionDebug" : true ,
6
+ "width" : 512 ,
7
+ "height" : 512
8
+ }
9
+ },
10
+ "center" : [
11
+ 0 ,
12
+ 0
13
+ ],
14
+ "zoom" : 4 ,
15
+ "pitch" : 0 ,
16
+ "bearing" : 0 ,
17
+ "sources" : {
18
+ "geojson" : {
19
+ "type" : " geojson" ,
20
+ "maxzoom" : 1 ,
21
+ "data" : {
22
+ "type" : " FeatureCollection" ,
23
+ "features" : [{
24
+ "type" : " Feature" ,
25
+ "properties" : {
26
+ "name" : " abcdefg"
27
+ },
28
+ "geometry" : {
29
+ "type" : " LineString" ,
30
+ "coordinates" : [
31
+ [ -5 , 4 ], [ 5 , 4 ]
32
+ ]
33
+ }
34
+
35
+ },
36
+ {
37
+ "type" : " Feature" ,
38
+ "properties" : {
39
+ "name" : " abcdefg"
40
+ },
41
+ "geometry" : {
42
+ "type" : " LineString" ,
43
+ "coordinates" : [
44
+ [ 5 , -4 ], [ -5 , -4 ]
45
+ ]
46
+ }
47
+
48
+ }]
49
+ }
50
+ }
51
+ },
52
+ "glyphs" : " local://glyphs/{fontstack}/{range}.pbf" ,
53
+ "layers" : [
54
+ {
55
+ "id" : " background" ,
56
+ "type" : " background" ,
57
+ "paint" : {
58
+ "background-color" : " white"
59
+ }
60
+ },
61
+ {
62
+ "id" : " line" ,
63
+ "type" : " symbol" ,
64
+ "source" : " geojson" ,
65
+ "layout" : {
66
+ "text-field" : " {name}" ,
67
+ "text-font" : [
68
+ " Open Sans Semibold" ,
69
+ " Arial Unicode MS Bold"
70
+ ],
71
+ "symbol-placement" : " line" ,
72
+ "symbol-spacing" : 100 ,
73
+ "text-pitch-alignment" : " map" ,
74
+ "text-anchor" : " right"
75
+ }
76
+ }
77
+ ]
78
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : 8 ,
3
+ "metadata" : {
4
+ "test" : {
5
+ "collisionDebug" : true ,
6
+ "width" : 512 ,
7
+ "height" : 512
8
+ }
9
+ },
10
+ "center" : [
11
+ 0 ,
12
+ 0
13
+ ],
14
+ "zoom" : 4 ,
15
+ "pitch" : 60 ,
16
+ "bearing" : 90 ,
17
+ "sources" : {
18
+ "geojson" : {
19
+ "type" : " geojson" ,
20
+ "maxzoom" : 1 ,
21
+ "data" : {
22
+ "type" : " FeatureCollection" ,
23
+ "features" : [{
24
+ "type" : " Feature" ,
25
+ "properties" : {
26
+ "name" : " Some sentence that is quite long"
27
+ },
28
+ "geometry" : {
29
+ "type" : " LineString" ,
30
+ "coordinates" : [
31
+ [ -20 , 4 ], [ 20 , 4 ]
32
+ ]
33
+ }
34
+
35
+ },
36
+ {
37
+ "type" : " Feature" ,
38
+ "properties" : {
39
+ "name" : " Another sentence that is even longer than the previous one"
40
+ },
41
+ "geometry" : {
42
+ "type" : " LineString" ,
43
+ "coordinates" : [
44
+ [ 0 , 0 ], [ 50 , 0 ]
45
+ ]
46
+ }
47
+
48
+ }]
49
+ }
50
+ }
51
+ },
52
+ "glyphs" : " local://glyphs/{fontstack}/{range}.pbf" ,
53
+ "layers" : [
54
+ {
55
+ "id" : " background" ,
56
+ "type" : " background" ,
57
+ "paint" : {
58
+ "background-color" : " white"
59
+ }
60
+ },
61
+ {
62
+ "id" : " line" ,
63
+ "type" : " symbol" ,
64
+ "source" : " geojson" ,
65
+ "layout" : {
66
+ "text-field" : " {name}" ,
67
+ "text-font" : [
68
+ " Open Sans Semibold" ,
69
+ " Arial Unicode MS Bold"
70
+ ],
71
+ "symbol-placement" : " line" ,
72
+ "text-pitch-alignment" : " map"
73
+ }
74
+ }
75
+ ]
76
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : 8 ,
3
+ "metadata" : {
4
+ "test" : {
5
+ "collisionDebug" : true ,
6
+ "width" : 512 ,
7
+ "height" : 512
8
+ }
9
+ },
10
+ "center" : [
11
+ 0 ,
12
+ 0
13
+ ],
14
+ "zoom" : 4 ,
15
+ "pitch" : 60 ,
16
+ "sources" : {
17
+ "geojson" : {
18
+ "type" : " geojson" ,
19
+ "maxzoom" : 1 ,
20
+ "data" : {
21
+ "type" : " FeatureCollection" ,
22
+ "features" : [{
23
+ "type" : " Feature" ,
24
+ "properties" : {
25
+ "name" : " a"
26
+ },
27
+ "geometry" : {
28
+ "type" : " LineString" ,
29
+ "coordinates" : [
30
+ [ -5 , 4 ], [ -1 , 4 ]
31
+ ]
32
+ }
33
+
34
+ },
35
+ {
36
+ "type" : " Feature" ,
37
+ "properties" : {
38
+ "name" : " ab"
39
+ },
40
+ "geometry" : {
41
+ "type" : " LineString" ,
42
+ "coordinates" : [
43
+ [ -5 , 0 ], [ -1 , 0 ]
44
+ ]
45
+ }
46
+
47
+ },
48
+ {
49
+ "type" : " Feature" ,
50
+ "properties" : {
51
+ "name" : " abc"
52
+ },
53
+ "geometry" : {
54
+ "type" : " LineString" ,
55
+ "coordinates" : [
56
+ [ -5 , -4 ], [ -1 , -4 ]
57
+ ]
58
+ }
59
+
60
+ },
61
+ {
62
+ "type" : " Feature" ,
63
+ "properties" : {
64
+ "name" : " abcd"
65
+ },
66
+ "geometry" : {
67
+ "type" : " LineString" ,
68
+ "coordinates" : [
69
+ [ 1 , 4 ], [ 5 , 4 ]
70
+ ]
71
+ }
72
+
73
+ },
74
+ {
75
+ "type" : " Feature" ,
76
+ "properties" : {
77
+ "name" : " abcde"
78
+ },
79
+ "geometry" : {
80
+ "type" : " LineString" ,
81
+ "coordinates" : [
82
+ [ 1 , 0 ], [ 5 , 0 ]
83
+ ]
84
+ }
85
+
86
+ },
87
+ {
88
+ "type" : " Feature" ,
89
+ "properties" : {
90
+ "name" : " abcdef"
91
+ },
92
+ "geometry" : {
93
+ "type" : " LineString" ,
94
+ "coordinates" : [
95
+ [ 1 , -4 ], [ 5 , -4 ]
96
+ ]
97
+ }
98
+
99
+ }]
100
+ }
101
+ }
102
+ },
103
+ "glyphs" : " local://glyphs/{fontstack}/{range}.pbf" ,
104
+ "layers" : [
105
+ {
106
+ "id" : " background" ,
107
+ "type" : " background" ,
108
+ "paint" : {
109
+ "background-color" : " white"
110
+ }
111
+ },
112
+ {
113
+ "id" : " line" ,
114
+ "type" : " symbol" ,
115
+ "source" : " geojson" ,
116
+ "layout" : {
117
+ "text-field" : " {name}" ,
118
+ "symbol-spacing" : 30 ,
119
+ "text-font" : [
120
+ " Open Sans Semibold" ,
121
+ " Arial Unicode MS Bold"
122
+ ],
123
+ "symbol-placement" : " line" ,
124
+ "text-pitch-alignment" : " viewport"
125
+ }
126
+ }
127
+ ]
128
+ }
You can’t perform that action at this time.
0 commit comments