bad stops array fixture, weird error

This commit is contained in:
Mike Morris
2014-07-18 18:20:29 -04:00
parent 7fd5de7104
commit 1e55be2065
4 changed files with 29 additions and 12 deletions

View File

@@ -0,0 +1,7 @@
{
"default": {
"log": [
[1, "WARNING", "ParseStyle", "function argument must be a numeric value"]
]
}
}

View 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": [0]
}
}
}]
}

View File

@@ -1,11 +0,0 @@
{
"default": {
"log": [
[20, "WARNING", "ParseStyle", "stop must have zoom level and value specification"],
[6, "WARNING", "ParseStyle", "function must specify a function type"],
[1, "WARNING", "ParseStyle", "value of 'line-width' must be a number, or a number function"],
[1, "WARNING", "ParseStyle", "array value has unexpected number of elements"],
[1, "WARNING", "ParseStyle", "value of 'line-opacity' must be a number, or a number function"]
]
}
}

File diff suppressed because one or more lines are too long