From 533cbc49c27b62bb78bf0e430ac51494677e4f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Delaun=C3=A9?= Date: Tue, 26 Nov 2019 11:38:28 +0100 Subject: [PATCH 1/2] motorway_link does not exists in highway_class see https://github.com/openmaptiles/openmaptiles/blob/master/layers/transportation/class.sql#L14 --- style.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style.json b/style.json index 8984e49..ea36345 100644 --- a/style.json +++ b/style.json @@ -352,7 +352,7 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway_link"], + ["==", "class", "motorway"], ["==", "ramp", 1], ["==", "brunnel", "tunnel"] ], @@ -871,7 +871,7 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway_link"], + ["==", "class", "motorway"], ["==", "ramp", 1], ["==", "brunnel", "bridge"] ], @@ -1030,7 +1030,7 @@ "source-layer": "transportation", "filter": [ "all", - ["==", "class", "motorway_link"], + ["==", "class", "motorway"], ["==", "ramp", 1], ["==", "brunnel", "bridge"] ], From d9efc8af0e9f35f50ba5f1f37134e1e554f2ad1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Delaun=C3=A9?= Date: Tue, 26 Nov 2019 11:39:31 +0100 Subject: [PATCH 2/2] avoid duplication of motorway links and ramps since all links are considered as ramps : https://github.com/openmaptiles/openmaptiles/blob/67672de2874584913d8f636a0e3d24457b893915/layers/transportation/layer.sql#L28 --- style.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/style.json b/style.json index ea36345..4f3a823 100644 --- a/style.json +++ b/style.json @@ -316,6 +316,7 @@ "filter": [ "all", ["==", "class", "motorway"], + ["!=", "ramp", 1], ["==", "brunnel", "tunnel"] ], "layout": {"line-join": "round"}, @@ -448,6 +449,7 @@ "filter": [ "all", ["==", "class", "motorway"], + ["!=", "ramp", 1], ["==", "brunnel", "tunnel"] ], "layout": {"line-join": "round"}, @@ -564,7 +566,7 @@ "filter": [ "all", ["!in", "brunnel", "bridge", "tunnel"], - ["!in", "class", "pedestrian", "path", "track", "service"], + ["!in", "class", "pedestrian", "path", "track", "service", "motorway"], ["==", "ramp", 1] ], "layout": {"line-cap": "round", "line-join": "round"}, @@ -721,7 +723,7 @@ "all", ["!in", "brunnel", "bridge", "tunnel"], ["==", "ramp", 1], - ["!in", "class", "pedestrian", "path", "track", "service"] + ["!in", "class", "pedestrian", "path", "track", "service", "motorway"] ], "layout": {"line-cap": "round", "line-join": "round"}, "paint": { @@ -995,6 +997,7 @@ "filter": [ "all", ["==", "class", "motorway"], + ["!=", "ramp", 1], ["==", "brunnel", "bridge"] ], "layout": {"line-join": "round"}, @@ -1126,6 +1129,7 @@ "filter": [ "all", ["==", "class", "motorway"], + ["!=", "ramp", 1], ["==", "brunnel", "bridge"] ], "layout": {"line-join": "round"},