From 6900997c56fa22d48c32bfcb8f89fa5cb1a2f34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Zbytovsk=C3=BD?= Date: Tue, 24 Aug 2021 08:02:31 +0200 Subject: [PATCH 1/2] Add motorway_contruction layer Based on https://github.com/zbycz/osmapp/pull/61 --- style.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/style.json b/style.json index baa401be..38f6427e 100644 --- a/style.json +++ b/style.json @@ -165,6 +165,24 @@ "filter": ["==", "class", "public_park"], "paint": {"fill-color": "#d8e8c8", "fill-opacity": 0.8} }, + { + "id": "highway-motorway-construction", + "type": "line", + "source": "maptiler_planet", + "source-layer": "transportation", + "minzoom": 5, + "filter": [ + "all", + ["==", "$type", "LineString"], + ["all", ["==", "class", "motorway_construction"]] + ], + "layout": {"line-cap": "round", "line-join": "round", "visibility": "visible"}, + "paint": { + "line-color": "#fff", + "line-width": {"base": 1.2, "stops": [[6.5, 0], [7, 0.5], [20, 18]]}, + "line-opacity": {"stops": [[5, 0], [14, 0.4]]} + } + }, { "id": "waterway_tunnel", "type": "line", @@ -2444,4 +2462,4 @@ } ], "id": "bright" -} \ No newline at end of file +} From ff39c4fb7600b6ca2759419b5fe0175b0172a139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Zbytovsk=C3=BD?= Date: Fri, 21 Jun 2024 11:58:03 +0200 Subject: [PATCH 2/2] change `source` to `openmaptiles` --- style.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.json b/style.json index 38f6427e..c19d1646 100644 --- a/style.json +++ b/style.json @@ -168,7 +168,7 @@ { "id": "highway-motorway-construction", "type": "line", - "source": "maptiler_planet", + "source": "openmaptiles", "source-layer": "transportation", "minzoom": 5, "filter": [