-
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.
Quick/dirty fix: apply rotation after text-offset
- Loading branch information
Anand Thakker
committed
Jun 2, 2017
1 parent
943dc39
commit 8c55a7e
Showing
4 changed files
with
96 additions
and
24 deletions.
There are no files selected for viewing
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
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
Binary file added
BIN
+2.98 KB
...egration/render-tests/text-keep-upright/line-placement-true-offset/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions
58
test/integration/render-tests/text-keep-upright/line-placement-true-offset/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,58 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 64, | ||
"operations": [ | ||
[ "setBearing", 20 ], | ||
[ "wait" ] | ||
] | ||
} | ||
}, | ||
"center": [ 0, 0 ], | ||
"zoom": 0, | ||
"sources": { | ||
"geojson": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[-20, -20], | ||
[20, -20], | ||
[20, 20], | ||
[-20, 20] | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "guid", | ||
"type": "line", | ||
"source": "geojson" | ||
}, | ||
{ | ||
"id": "text", | ||
"type": "symbol", | ||
"source": "geojson", | ||
"layout": { | ||
"symbol-placement": "line", | ||
"symbol-spacing": 3, | ||
"text-allow-overlap": true, | ||
"text-ignore-placement": true, | ||
"text-field": "A", | ||
"text-font": [ | ||
"Open Sans Semibold", | ||
"Arial Unicode MS Bold" | ||
], | ||
"text-keep-upright": true, | ||
"text-offset": [0, -1] | ||
} | ||
} | ||
] | ||
} |