Update styles
This commit is contained in:
28
test/fixtures/style_parser/colors.style.json
vendored
28
test/fixtures/style_parser/colors.style.json
vendored
@@ -1,39 +1,39 @@
|
||||
{
|
||||
"version": 3,
|
||||
"version": 6,
|
||||
"constants": {
|
||||
"@land": "r44,239,225)",
|
||||
"@snow": "f4f8foNGbjf#",
|
||||
"@crop": "#eerLznieed4"
|
||||
},
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
"maxzoom": 14
|
||||
}
|
||||
},
|
||||
"constants": {
|
||||
"@land":"r44,239,225)",
|
||||
"@snow":"f4f8foNGbjf#",
|
||||
"@crop":"#eerLznieed4"
|
||||
},
|
||||
"layers": [{
|
||||
"id": "background",
|
||||
"type": "background",
|
||||
"style": {
|
||||
"paint": {
|
||||
"background-color": "@land"
|
||||
}
|
||||
}, {
|
||||
"id": "landcover_snow",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "landcover",
|
||||
"filter": { "class": "snow" },
|
||||
"type": "fill",
|
||||
"style": {
|
||||
"filter": ["==", "class", "snow"],
|
||||
"paint": {
|
||||
"fill-color": "@snow"
|
||||
}
|
||||
}, {
|
||||
"id": "landcover_crop",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "landcover",
|
||||
"filter": { "class": "crop" },
|
||||
"type": "fill",
|
||||
"style": {
|
||||
"filter": ["==", "class", "crop"],
|
||||
"paint": {
|
||||
"fill-color": "@crop"
|
||||
}
|
||||
}]
|
||||
|
||||
6
test/fixtures/style_parser/default.info.json
vendored
6
test/fixtures/style_parser/default.info.json
vendored
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"default": {
|
||||
"log": [
|
||||
]
|
||||
}
|
||||
}
|
||||
2244
test/fixtures/style_parser/default.style.json
vendored
2244
test/fixtures/style_parser/default.style.json
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"version": 3,
|
||||
"version": 6,
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
"maxzoom": 14
|
||||
}
|
||||
},
|
||||
"layers": [{
|
||||
"id": "waterway_river_canal",
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"source-layer": "waterway",
|
||||
"filter": { "type": ["river", "canal"] },
|
||||
"type": "line",
|
||||
"style": {
|
||||
"filter": ["in", "type", "river", "canal"],
|
||||
"paint": {
|
||||
"line-width": {
|
||||
"stops": [0]
|
||||
}
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"version": 3,
|
||||
"version": 6,
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
"maxzoom": 14
|
||||
}
|
||||
},
|
||||
"layers": [{
|
||||
"id": "waterway_river_canal",
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"source-layer": "waterway",
|
||||
"filter": { "type": ["river", "canal"] },
|
||||
"type": "line",
|
||||
"style": {
|
||||
"filter": ["in", "type", "river", "canal"],
|
||||
"paint": {
|
||||
"line-width": {}
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"version": 3,
|
||||
"version": 6,
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
"maxzoom": 14
|
||||
}
|
||||
},
|
||||
"layers": [{
|
||||
"id": "contour_line_loud",
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"source-layer": "contour",
|
||||
"filter": { "index": 5 },
|
||||
"type": "line",
|
||||
"style": {
|
||||
"filter": ["==", "index", 5],
|
||||
"paint": {
|
||||
"line-color": "#008",
|
||||
"line-width": 0.9,
|
||||
"line-opacity": null
|
||||
|
||||
10
test/fixtures/style_parser/line-width.style.json
vendored
10
test/fixtures/style_parser/line-width.style.json
vendored
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"version": 3,
|
||||
"version": 6,
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
"maxzoom": 14
|
||||
}
|
||||
},
|
||||
"layers": [{
|
||||
"id": "waterway_river_canal",
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"source-layer": "waterway",
|
||||
"filter": { "type": ["river", "canal"] },
|
||||
"type": "line",
|
||||
"style": {
|
||||
"filter": ["in", "type", "river", "canal"],
|
||||
"paint": {
|
||||
"line-width": null
|
||||
}
|
||||
}]
|
||||
|
||||
@@ -1,41 +1,41 @@
|
||||
{
|
||||
"version": 3,
|
||||
"version": 6,
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
"maxzoom": 14
|
||||
}
|
||||
},
|
||||
"layers": [{
|
||||
"id": "landcover_grass",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "landcover",
|
||||
"filter": { "class": "grass" },
|
||||
"type": "fill",
|
||||
"style": {
|
||||
"filter": ["==", "class", "grass"],
|
||||
"paint": {
|
||||
"fill-opacity": {
|
||||
"stops": []
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"id": "landcover_scrub",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "landcover",
|
||||
"filter": { "class": "scrub" },
|
||||
"type": "fill",
|
||||
"style": {
|
||||
"filter": ["==", "class", "scrub"],
|
||||
"paint": {
|
||||
"fill-opacity": {
|
||||
"stops": [[12]]
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"id": "landcover_wood",
|
||||
"type": "fill",
|
||||
"source": "mapbox",
|
||||
"source-layer": "landcover",
|
||||
"filter": { "class": "wood" },
|
||||
"type": "fill",
|
||||
"style": {
|
||||
"filter": ["==", "class", "wood"],
|
||||
"paint": {
|
||||
"fill-color": "@wood",
|
||||
"fill-opacity": {
|
||||
"stops": [[12, 1], [13, 0.8], [16, 0.2]]
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"version": 3,
|
||||
"version": 6,
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
"maxzoom": 14
|
||||
}
|
||||
},
|
||||
"layers": [{
|
||||
"id": "waterway_river_canal",
|
||||
"type": "line",
|
||||
"source": "mapbox",
|
||||
"source-layer": "waterway",
|
||||
"filter": { "type": ["river", "canal"] },
|
||||
"type": "line",
|
||||
"style": {
|
||||
"filter": ["in", "type", "river", "canal"],
|
||||
"paint": {
|
||||
"line-width": {
|
||||
"stops": null
|
||||
}
|
||||
|
||||
10
test/fixtures/style_parser/text-size.style.json
vendored
10
test/fixtures/style_parser/text-size.style.json
vendored
@@ -1,19 +1,19 @@
|
||||
{
|
||||
"version": 3,
|
||||
"version": 6,
|
||||
"sources": {
|
||||
"mapbox": {
|
||||
"type": "vector",
|
||||
"url": "mapbox://mapbox.mapbox-terrain-v1,mapbox.mapbox-streets-v5",
|
||||
"maxZoom": 14
|
||||
"maxzoom": 14
|
||||
}
|
||||
},
|
||||
"layers": [{
|
||||
"id": "country_label",
|
||||
"type": "text",
|
||||
"source": "mapbox",
|
||||
"source-layer": "country_label",
|
||||
"filter": { "$type": "Point" },
|
||||
"type": "text",
|
||||
"style": {
|
||||
"filter": ["==", "$type", "Point"],
|
||||
"paint": {
|
||||
"text-size": null
|
||||
}
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user