From 596dfeab3f74a2b43646b1ae5571873646043673 Mon Sep 17 00:00:00 2001 From: Mark Phillips Date: Tue, 27 Oct 2020 20:01:34 -0400 Subject: [PATCH] render new major_roads2 layer at zoom levels 7-13 --- mbgl-antique-style.json | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/mbgl-antique-style.json b/mbgl-antique-style.json index 3d4d597..88985c4 100644 --- a/mbgl-antique-style.json +++ b/mbgl-antique-style.json @@ -88,9 +88,9 @@ }, { "paint":{"line-color":"#444444","line-width":{"stops":[[14,6],[19,29]]}}, - "source-layer":"roads", "id":"roads_casing_major", "source":"antique", + "source-layer":"roads", "type":"line", "filter": ["in", ["get", "type"], ["literal", ["motorway","trunk","primary","secondary"]]], "minzoom":13, @@ -98,9 +98,9 @@ }, { "paint":{"line-color":"#444444","line-width":{"stops":[[14,4],[19,24]]}}, - "source-layer":"roads", "id":"roads_casing_mid", "source":"antique", + "source-layer":"roads", "type":"line", "filter": [ "match", ["get", "type"], ["trunk","primary","secondary" ],false,true ], "minzoom":13, @@ -116,6 +116,23 @@ "id":"roads_centre_mid", "ref":"roads_casing_mid" }, + + { + "paint":{"line-color":"#444444","line-width":{"stops":[[8,2],[14,6]]}}, + "id":"roads_casing_major2", + "source":"antique", + "source-layer":"major_roads", + "type":"line", + "filter": ["in", ["get", "type"], ["literal", ["motorway","trunk","primary","secondary"]]], + "minzoom":7, + "maxzoom":13 + }, + { + "paint":{"line-color":"#e8e0c8","line-width":{"stops":[[8,1],[14,5]]}}, + "id":"roads_centre_major2", + "ref":"roads_casing_major2" + }, + { "paint":{"fill-opacity":0.7, "fill-color": [