add stops-array fixture
This commit is contained in:
7
test/fixtures/style_parser/stops-array.info.json
vendored
Normal file
7
test/fixtures/style_parser/stops-array.info.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[1, "WARNING", "ParseStyle", "stops function must specify a stops array"]
|
||||
]
|
||||
}
|
||||
}
|
||||
22
test/fixtures/style_parser/stops-array.style.json
vendored
Normal file
22
test/fixtures/style_parser/stops-array.style.json
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
}
|
||||
},
|
||||
"layers": [{
|
||||
"id": "waterway_river_canal",
|
||||
"source": "mapbox",
|
||||
"source-layer": "waterway",
|
||||
"filter": { "type": ["river", "canal"] },
|
||||
"type": "line",
|
||||
"style": {
|
||||
"line-width": {
|
||||
"stops": null
|
||||
}
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user