From c9d9b7a237b8c0e1f64ad71789506bc783ce19e9 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet <pietervdvn@posteo.net> Date: Fri, 12 Apr 2024 02:01:33 +0200 Subject: [PATCH] Sunny: render underground rivers and streams differently --- public/assets/sunny-unlabeled.json | 80 ++++++++++++++++++++++++++++++ public/assets/sunny.json | 79 +++++++++++++++++++++++++++++ 2 files changed, 159 insertions(+) diff --git a/public/assets/sunny-unlabeled.json b/public/assets/sunny-unlabeled.json index 0f1052722..061e2605b 100644 --- a/public/assets/sunny-unlabeled.json +++ b/public/assets/sunny-unlabeled.json @@ -486,6 +486,11 @@ "in", "pmap:kind", "stream" + ], + [ + ">=", + "pmap:level", + 0 ] ], "paint": { @@ -505,6 +510,11 @@ "in", "pmap:kind", "river" + ], + [ + ">=", + "pmap:level", + 0 ] ], "paint": { @@ -527,6 +537,76 @@ ] } }, + { + "id": "physical_line_underground_stream", + "type": "line", + "source": "protomaps", + "source-layer": "physical_line", + "minzoom": 14, + "filter": [ + "all", + [ + "in", + "pmap:kind", + "stream" + ], + [ + "<", + "pmap:level", + 0 + ] + ], + "paint": { + "line-color": "#85c2e9", + "line-width": 0.5 + } + }, + { + "id": "physical_line_underground_river", + "type": "line", + "source": "protomaps", + "source-layer": "physical_line", + "minzoom": 9, + "filter": [ + "all", + [ + "in", + "pmap:kind", + "river" + ], + [ + "<", + "pmap:level", + 0 + ] + ], + "layout": { + "line-cap": "round" + }, + "paint": { + "line-color": "#85c2e9", + "line-dasharray": [ + 0.75, + 1.75 + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1.6 + ], + [ + "zoom" + ], + 9, + 0, + 9.5, + 1, + 18, + 6 + ] + } + }, { "id": "landuse_pedestrian", "type": "fill", diff --git a/public/assets/sunny.json b/public/assets/sunny.json index dcf07f7b9..ace41b7f1 100644 --- a/public/assets/sunny.json +++ b/public/assets/sunny.json @@ -485,6 +485,11 @@ "in", "pmap:kind", "stream" + ], + [ + ">=", + "pmap:level", + 0 ] ], "paint": { @@ -504,6 +509,11 @@ "in", "pmap:kind", "river" + ], + [ + ">=", + "pmap:level", + 0 ] ], "paint": { @@ -526,6 +536,75 @@ ] } }, + { + "id": "physical_line_underground_stream", + "type": "line", + "source": "protomaps", + "source-layer": "physical_line", + "minzoom": 14, + "filter": [ + "all", + [ + "in", + "pmap:kind", + "stream" + ], + [ + "<", + "pmap:level", + 0 + ] + ], + "paint": { + "line-color": "#85c2e9", + "line-width": 0.5 + } + }, + { + "id": "physical_line_underground_river", + "type": "line", + "source": "protomaps", + "source-layer": "physical_line", + "minzoom": 9, + "filter": [ + "all", + [ + "in", + "pmap:kind", + "river" + ], + [ + "<", + "pmap:level", + 0 + ] + ], + "layout": { + "line-cap": "round" + }, + "paint": { + "line-color": "#85c2e9", + "line-dasharray": [ + 0.75,1.75 + ], + "line-width": [ + "interpolate", + [ + "exponential", + 1.6 + ], + [ + "zoom" + ], + 9, + 0, + 9.5, + 1, + 18, + 6 + ] + } + }, { "id": "landuse_pedestrian", "type": "fill",