From 9169b0b2a17d83787eaf2c5ccf28a8745cdd422e Mon Sep 17 00:00:00 2001 From: Eva J Date: Thu, 9 Jan 2020 12:57:39 +0100 Subject: [PATCH 1/3] style for OMT 3.11 - boundary, water brunnel --- style.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/style.json b/style.json index afe0191..1c8c1b5 100644 --- a/style.json +++ b/style.json @@ -149,6 +149,7 @@ "type": "fill", "source": "openmaptiles", "source-layer": "water", + "filter": ["all", ["!=", "brunnel", "tunnel"]], "paint": {"fill-color": "rgb(158,189,255)"} }, { @@ -1241,10 +1242,25 @@ } }, { - "id": "boundary_2", + "id": "boundary_2_z0-4", "type": "line", "source": "openmaptiles", "source-layer": "boundary", + "maxzoom": 5, + "filter": ["all", ["==", "admin_level", 2], ["!has", "claimed_by"]], + "layout": {"line-cap": "round", "line-join": "round"}, + "paint": { + "line-color": "hsl(248, 1%, 41%)", + "line-opacity": {"base": 1, "stops": [[0, 0.4], [4, 1]]}, + "line-width": {"base": 1, "stops": [[3, 1], [5, 1.2], [12, 3]]} + } + }, + { + "id": "boundary_2_z5-", + "type": "line", + "source": "openmaptiles", + "source-layer": "boundary", + "minzoom": 5, "filter": ["all", ["==", "admin_level", 2]], "layout": {"line-cap": "round", "line-join": "round"}, "paint": { From ce60febf7bb306d38e614ff699419ddc1b14d0fc Mon Sep 17 00:00:00 2001 From: Eva J Date: Fri, 10 Jan 2020 16:45:43 +0100 Subject: [PATCH 2/3] adding waterway_tunnel --- style.json | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/style.json b/style.json index 1c8c1b5..988c35a 100644 --- a/style.json +++ b/style.json @@ -120,12 +120,27 @@ "filter": ["==", "class", "school"], "paint": {"fill-color": "rgb(236,238,204)"} }, + { + "id": "waterway_tunnel", + "type": "line", + "source": "openmaptiles", + "source-layer": "waterway", + "filter": ["all", ["==", "brunnel", "tunnel"]], + "layout": {"visibility": "visible"}, + "paint": { + "line-color": "#a0c8f0", + "line-dasharray": [3, 3], + "line-gap-width": {"stops": [[12, 0], [20, 6]]}, + "line-opacity": 1, + "line-width": {"base": 1.4, "stops": [[8, 1], [20, 2]]} + } + }, { "id": "waterway_river", "type": "line", "source": "openmaptiles", "source-layer": "waterway", - "filter": ["==", "class", "river"], + "filter": ["all", ["==", "class", "river"], ["!=", "brunnel", "tunnel"]], "layout": {"line-cap": "round"}, "paint": { "line-color": "#a0c8f0", @@ -137,7 +152,7 @@ "type": "line", "source": "openmaptiles", "source-layer": "waterway", - "filter": ["all", ["!=", "class", "river"]], + "filter": ["all", ["!=", "class", "river"], ["!=", "brunnel", "tunnel"]], "layout": {"line-cap": "round"}, "paint": { "line-color": "#a0c8f0", From 5b37adf010cbd67fb0ee82f686c363fc32322218 Mon Sep 17 00:00:00 2001 From: Eva J Date: Mon, 13 Jan 2020 10:05:19 +0100 Subject: [PATCH 3/3] removing visibility line --- style.json | 1 - 1 file changed, 1 deletion(-) diff --git a/style.json b/style.json index 988c35a..0ab48fb 100644 --- a/style.json +++ b/style.json @@ -126,7 +126,6 @@ "source": "openmaptiles", "source-layer": "waterway", "filter": ["all", ["==", "brunnel", "tunnel"]], - "layout": {"visibility": "visible"}, "paint": { "line-color": "#a0c8f0", "line-dasharray": [3, 3],