-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d13e5ad
commit fe44204
Showing
8 changed files
with
408 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+10.8 KB
...ntegration/render-tests/debug/collision-lines-non-center-alignment/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions
78
.../integration/render-tests/debug/collision-lines-non-center-alignment/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"collisionDebug": true, | ||
"width": 512, | ||
"height": 512 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 4, | ||
"pitch": 0, | ||
"bearing": 0, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"maxzoom": 1, | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "abcdefg" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ -5, 4 ], [ 5, 4 ] | ||
] | ||
} | ||
|
||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "abcdefg" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ 5, -4 ], [ -5, -4 ] | ||
] | ||
} | ||
|
||
}] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "white" | ||
} | ||
}, | ||
{ | ||
"id": "line", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"text-field": "{name}", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"symbol-placement": "line", | ||
"symbol-spacing": 100, | ||
"text-pitch-alignment": "map", | ||
"text-anchor": "right" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+21.7 KB
test/integration/render-tests/debug/collision-lines-pitched-2/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions
76
test/integration/render-tests/debug/collision-lines-pitched-2/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"collisionDebug": true, | ||
"width": 512, | ||
"height": 512 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 4, | ||
"pitch": 60, | ||
"bearing": 90, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"maxzoom": 1, | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "Some sentence that is quite long" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ -20, 4 ], [ 20, 4 ] | ||
] | ||
} | ||
|
||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "Another sentence that is even longer than the previous one" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ 0, 0 ], [ 50, 0 ] | ||
] | ||
} | ||
|
||
}] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "white" | ||
} | ||
}, | ||
{ | ||
"id": "line", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"text-field": "{name}", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"symbol-placement": "line", | ||
"text-pitch-alignment": "map" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+17.7 KB
...ntegration/render-tests/debug/collision-lines-simple-words-pitched/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
128 changes: 128 additions & 0 deletions
128
.../integration/render-tests/debug/collision-lines-simple-words-pitched/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"collisionDebug": true, | ||
"width": 512, | ||
"height": 512 | ||
} | ||
}, | ||
"center": [ | ||
0, | ||
0 | ||
], | ||
"zoom": 4, | ||
"pitch": 60, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"maxzoom": 1, | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "a" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ -5, 4 ], [ -1, 4 ] | ||
] | ||
} | ||
|
||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "ab" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ -5, 0 ], [ -1, 0 ] | ||
] | ||
} | ||
|
||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "abc" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ -5, -4 ], [ -1, -4 ] | ||
] | ||
} | ||
|
||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "abcd" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ 1, 4 ], [ 5, 4 ] | ||
] | ||
} | ||
|
||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "abcde" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ 1, 0 ], [ 5, 0 ] | ||
] | ||
} | ||
|
||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "abcdef" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ 1, -4 ], [ 5, -4 ] | ||
] | ||
} | ||
|
||
}] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "white" | ||
} | ||
}, | ||
{ | ||
"id": "line", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"text-field": "{name}", | ||
"symbol-spacing": 30, | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"symbol-placement": "line", | ||
"text-pitch-alignment": "viewport" | ||
} | ||
} | ||
] | ||
} |
Binary file added
BIN
+15 KB
test/integration/render-tests/debug/collision-lines-simple-words/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.