Skip to content

Commit 1d5a0d3

Browse files
sakrolekgithub-actions[bot]
authored andcommitted
Test appearance placed along the line
GitOrigin-RevId: a937e708fa74bb0eb48383499472ec2365c471b0
1 parent 4a2fa3d commit 1d5a0d3

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

test/ignores/all.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ const skip = [
147147
// Broken in similar way as gl-native https://mapbox.atlassian.net/browse/MAPSNAT-3474
148148
"render-tests/appearance/icon-text-fit-vertical/other-image",
149149

150+
// Broken - https://mapbox.atlassian.net/browse/GLJS-1583
151+
"render-tests/appearance/line-placement/icon-appears-below",
152+
150153
// Broken in similar way as gl-native https://mapbox.atlassian.net/browse/MAPSNAT-3462
151154
"render-tests/appearance/no-icon-size-in-appearance-non-default-layout-icon-size",
152155

1.05 KB
Loading
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"version": 8,
3+
"metadata": {
4+
"test": {
5+
"width": 128,
6+
"height": 64
7+
}
8+
},
9+
"camera": {"camera-projection": "orthographic"},
10+
"sources": {
11+
"geojson": {
12+
"type": "geojson",
13+
"data": {
14+
"type": "FeatureCollection",
15+
"features": [
16+
{
17+
"type": "Feature",
18+
"geometry": {
19+
"type": "LineString",
20+
"coordinates": [
21+
[
22+
-40,
23+
0
24+
],
25+
[
26+
40,
27+
0
28+
]
29+
]
30+
}
31+
}
32+
]
33+
}
34+
}
35+
},
36+
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
37+
"sprite": "local://sprites/sprite",
38+
"layers": [
39+
{
40+
"id": "line",
41+
"type": "line",
42+
"source": "geojson",
43+
"line-color": "orange"
44+
},
45+
{
46+
"id": "icon",
47+
"type": "symbol",
48+
"source": "geojson",
49+
"layout": {
50+
"text-field": "·",
51+
"text-font": [ "Open Sans Semibold", "Arial Unicode MS Bold" ],
52+
"text-size": 13,
53+
"symbol-placement": "line",
54+
"symbol-spacing": 50,
55+
"icon-image": "bank-12"
56+
},
57+
"appearances": [
58+
{
59+
"name": "icon-below-the-line",
60+
"condition": true,
61+
"properties": {
62+
"icon-offset": [0, 10]
63+
}
64+
}
65+
]
66+
}
67+
]
68+
}

0 commit comments

Comments
 (0)