Skip to content

Commit

Permalink
Add render tests for text-writing-mode layout property
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshalamov committed Jun 20, 2019
1 parent 35d642b commit 0da8c34
Show file tree
Hide file tree
Showing 14 changed files with 460 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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"version": 8,
"metadata": {
"test": {
"height": 128,
"width": 128
}
},
"center": [ 0, 0 ],
"zoom": 0,
"sources": {
"point": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ -10, 10 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 34, 0 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ -10, -10 ]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "point",
"layout": {
"text-field": "{name_jp}",
"text-writing-mode": ["horizontal", "vertical"],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-size": 14
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"version": 8,
"metadata": {
"test": {
"height": 128,
"width": 128
}
},
"center": [ 0, 0 ],
"zoom": 0,
"sources": {
"point": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス\nボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 14 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス\nボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, -28 ]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "point",
"layout": {
"text-field": "{name_jp}",
"text-writing-mode": ["vertical", "horizontal"],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-size": 12
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"version": 8,
"metadata": {
"test": {
"height": 128,
"width": 128
}
},
"center": [ 0, 0 ],
"zoom": 0,
"sources": {
"point": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 8 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 8 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 8 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップ"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, -34 ]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "point",
"layout": {
"text-field": "{name_jp}",
"text-writing-mode": ["vertical", "horizontal"],
"text-radial-offset": 1,
"text-variable-anchor": ["center", "left", "right", "bottom"],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-size": 14
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"version": 8,
"metadata": {
"test": {
"height": 128,
"width": 128
}
},
"center": [ 0, 0 ],
"zoom": 0,
"sources": {
"point": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, 0 ]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "point",
"layout": {
"text-field": "{name_jp}",
"text-writing-mode": ["vertical"],
"text-radial-offset": 1,
"text-variable-anchor": ["left", "right", "center"],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-size": 14
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"version": 8,
"metadata": {
"test": {
"height": 128,
"width": 128
}
},
"center": [ 0, 0 ],
"zoom": 0,
"sources": {
"point": {
"type": "geojson",
"data": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ -10, 8 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 10, 8 ]
}
},
{
"type": "Feature",
"properties": {
"name_jp": "マップボックス"
},
"geometry": {
"type": "Point",
"coordinates": [ 0, -34 ]
}
}
]
}
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "text",
"type": "symbol",
"source": "point",
"layout": {
"text-field": "{name_jp}",
"text-writing-mode": ["vertical", "horizontal"],
"text-font": [
"Open Sans Semibold",
"Arial Unicode MS Bold"
],
"text-size": 14
}
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0da8c34

Please sign in to comment.