add function type fixture
This commit is contained in:
7
test/fixtures/style_parser/function-type.info.json
vendored
Normal file
7
test/fixtures/style_parser/function-type.info.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[1, "WARNING", "ParseStyle", "function must specify a function type"]
|
||||
]
|
||||
}
|
||||
}
|
||||
20
test/fixtures/style_parser/function-type.style.json
vendored
Normal file
20
test/fixtures/style_parser/function-type.style.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
||||
}]
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[28, "WARNING", "ParseStyle", "stop must have zoom level and value specification"],
|
||||
[12, "WARNING", "ParseStyle", "function must specify a function type"]
|
||||
]
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user