-
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.
Fix issue #5546: cutoff angle for using vertical/horizontal glyphs sh…
…ouldn't be affected by viewport aspect ratio.
- Loading branch information
Showing
3 changed files
with
191 additions
and
4 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
Binary file added
BIN
+71 KB
test/integration/render-tests/regressions/mapbox-gl-js#5546/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
183 changes: 183 additions & 0 deletions
183
test/integration/render-tests/regressions/mapbox-gl-js#5546/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,183 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"height": 256, | ||
"width": 1024 | ||
} | ||
}, | ||
"zoom": 2, | ||
"center": [-14.41400, 45], | ||
"sources": { | ||
"mapbox": { | ||
"type": "geojson", | ||
"data": { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "氣到身什戰只白質位歡" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-14.4195556640625, | ||
39.091699613104595 | ||
], | ||
[ | ||
102.3046875, | ||
39.36827914916014 | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "電局今情再夜面造" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-14.403076171875, | ||
39.10022600175347 | ||
], | ||
[ | ||
103.35937499999999, | ||
65.80277639340238 | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "有究往極他生血通育" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-14.414062499999998, | ||
39.091699613104595 | ||
], | ||
[ | ||
-14.765625, | ||
82.21421714106776 | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "不示有電親界因來終" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-14.408569335937498, | ||
39.091699613104595 | ||
], | ||
[ | ||
-130.78125, | ||
39.095962936305476 | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "有下人費也家了清,黨光她保過每心" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-14.4195556640625, | ||
39.10022600175347 | ||
], | ||
[ | ||
-130.4296875, | ||
64.47279382008166 | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "醫公藝說就公和有" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-14.4195556640625, | ||
39.0831721934762 | ||
], | ||
[ | ||
33.75, | ||
81.87364125482827 | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Feature", | ||
"properties": { | ||
"name": "光中輪的態指那差車" | ||
}, | ||
"geometry": { | ||
"type": "LineString", | ||
"coordinates": [ | ||
[ | ||
-14.447021484374998, | ||
39.104488809440475 | ||
], | ||
[ | ||
-66.4453125, | ||
82.26169873683153 | ||
] | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"glyphs": "local://glyphs/{fontstack}/{range}.pbf", | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "white" | ||
} | ||
}, | ||
{ | ||
"id": "lines-symbol", | ||
"type": "symbol", | ||
"source": "mapbox", | ||
"layout": { | ||
"text-field": "{name}", | ||
"symbol-placement": "line", | ||
"symbol-spacing": 100, | ||
"text-allow-overlap": true, | ||
"text-font": [ "NotoCJK" ] | ||
} | ||
}, { | ||
"id": "lines", | ||
"type": "line", | ||
"source": "mapbox", | ||
"paint": { | ||
"line-opacity": 0.25 | ||
} | ||
} | ||
] | ||
} |