Skip to content

Commit

Permalink
Render test for long labels with unlimited width.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed Mar 22, 2018
1 parent c340ebe commit 3c07b72
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions test/integration/render-tests/text-max-width/unlimited/style.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"version": 8,
"metadata": {
"test": {
"height": 128,
"width": 512
}
},
"zoom": 1,
"sources": {
"mapbox": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [
-80,
0
]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "literal",
"type": "symbol",
"source": "mapbox",
"layout": {
"text-field": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-max-width": 0,
"text-anchor": "left"
}
}
]
}

0 comments on commit 3c07b72

Please sign in to comment.