Line pattern mixed render test (#2943)
This commit is contained in:
BIN
metrics/integration/render-tests/line-pattern/mixed/expected.png
Normal file
BIN
metrics/integration/render-tests/line-pattern/mixed/expected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
159
metrics/integration/render-tests/line-pattern/mixed/style.json
Normal file
159
metrics/integration/render-tests/line-pattern/mixed/style.json
Normal file
@@ -0,0 +1,159 @@
|
||||
{
|
||||
"version": 8,
|
||||
"metadata": {
|
||||
"test": {
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"ignoreProbing": true
|
||||
}
|
||||
},
|
||||
"zoom": 2,
|
||||
"sprite": "local://sprites/emerald",
|
||||
"sources": {
|
||||
"a": {
|
||||
"type": "geojson",
|
||||
"data": {
|
||||
"type": "FeatureCollection",
|
||||
"features": [
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"class": "trunk"
|
||||
},
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[
|
||||
50,
|
||||
-30
|
||||
],
|
||||
[
|
||||
-50,
|
||||
-30
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"class": "path"
|
||||
},
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[
|
||||
-50,
|
||||
-20
|
||||
],
|
||||
[
|
||||
50,
|
||||
-20
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"class": "street"
|
||||
},
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[
|
||||
-50,
|
||||
-10
|
||||
],
|
||||
[
|
||||
50,
|
||||
-10
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"class": "trunk"
|
||||
},
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[
|
||||
50,
|
||||
10
|
||||
],
|
||||
[
|
||||
-50,
|
||||
10
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"class": "path"
|
||||
},
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[
|
||||
-50,
|
||||
20
|
||||
],
|
||||
[
|
||||
50,
|
||||
20
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Feature",
|
||||
"properties": {
|
||||
"class": "street"
|
||||
},
|
||||
"geometry": {
|
||||
"type": "LineString",
|
||||
"coordinates": [
|
||||
[
|
||||
-50,
|
||||
30
|
||||
],
|
||||
[
|
||||
50,
|
||||
30
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"id": "background",
|
||||
"type": "background",
|
||||
"paint": {
|
||||
"background-color": "white"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "road",
|
||||
"type": "line",
|
||||
"source": "a",
|
||||
"paint": {
|
||||
"line-width": 10,
|
||||
"line-pattern": [
|
||||
"match", ["string", ["get", "class"]],
|
||||
"street", "generic_icon",
|
||||
"path", "generic_metro",
|
||||
"school_icon"
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user