add line-opacity and text-size fixtures
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[84, "WARNING", "ParseStyle", "value of 'line-width' must be a number, or a number function"],
|
||||
[6, "WARNING", "ParseStyle", "value of 'line-opacity' must be a number, or a number function"],
|
||||
[12, "WARNING", "ParseStyle", "value of 'text-size' must be a number, or a number function"]
|
||||
]
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
7
test/fixtures/style_parser/line-opacity.info.json
vendored
Normal file
7
test/fixtures/style_parser/line-opacity.info.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[1, "WARNING", "ParseStyle", "value of 'line-opacity' must be a number, or a number function"]
|
||||
]
|
||||
}
|
||||
}
|
||||
22
test/fixtures/style_parser/line-opacity.style.json
vendored
Normal file
22
test/fixtures/style_parser/line-opacity.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": "contour_line_loud",
|
||||
"source": "mapbox",
|
||||
"source-layer": "contour",
|
||||
"filter": { "index": 5 },
|
||||
"type": "line",
|
||||
"style": {
|
||||
"line-color": "#008",
|
||||
"line-width": 0.9,
|
||||
"line-opacity": null
|
||||
}
|
||||
}]
|
||||
}
|
||||
7
test/fixtures/style_parser/text-size.info.json
vendored
Normal file
7
test/fixtures/style_parser/text-size.info.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
[1, "WARNING", "ParseStyle", "value of 'text-size' must be a number, or a number function"]
|
||||
]
|
||||
}
|
||||
}
|
||||
20
test/fixtures/style_parser/text-size.style.json
vendored
Normal file
20
test/fixtures/style_parser/text-size.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": "country_label",
|
||||
"source": "mapbox",
|
||||
"source-layer": "country_label",
|
||||
"filter": { "$type": "Point" },
|
||||
"type": "text",
|
||||
"style": {
|
||||
"text-size": null
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user