From bcbf0ad93ddc83abfdf2f713b962024f14989ae9 Mon Sep 17 00:00:00 2001 From: GunSmoker Date: Mon, 6 Feb 2023 20:31:32 +0300 Subject: [PATCH 1/5] Created svg for issue 2288 --- symbols/earth_bank.svg | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 symbols/earth_bank.svg diff --git a/symbols/earth_bank.svg b/symbols/earth_bank.svg new file mode 100644 index 0000000000..a35894c03d --- /dev/null +++ b/symbols/earth_bank.svg @@ -0,0 +1,4 @@ + + + + From 72c1fd948b7221a54fe7aeed4710957bf87394d0 Mon Sep 17 00:00:00 2001 From: GunSmoker Date: Mon, 6 Feb 2023 20:32:19 +0300 Subject: [PATCH 2/5] Fixed issue 2288 --- style/landcover.mss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/style/landcover.mss b/style/landcover.mss index 6a177624bb..e9621ce50e 100644 --- a/style/landcover.mss +++ b/style/landcover.mss @@ -856,6 +856,9 @@ [man_made = 'embankment'][zoom >= 15]::man_made { line-pattern-file: url('symbols/embankment.svg'); } + [natural = 'earth_bank'][zoom >= 14] { + line-pattern-file: url('symbols/earth_bank.svg'); + } } #barriers { From 66bf3018e7078301c39adf3489f6fdc9daf958f2 Mon Sep 17 00:00:00 2001 From: GunSmoker Date: Mon, 6 Feb 2023 20:34:14 +0300 Subject: [PATCH 3/5] Changed order for natural earth_bank --- style/landcover.mss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style/landcover.mss b/style/landcover.mss index e9621ce50e..56bade1763 100644 --- a/style/landcover.mss +++ b/style/landcover.mss @@ -853,12 +853,12 @@ line-pattern-file: url('symbols/arete2.svg'); } } - [man_made = 'embankment'][zoom >= 15]::man_made { - line-pattern-file: url('symbols/embankment.svg'); - } [natural = 'earth_bank'][zoom >= 14] { line-pattern-file: url('symbols/earth_bank.svg'); } + [man_made = 'embankment'][zoom >= 15]::man_made { + line-pattern-file: url('symbols/embankment.svg'); + } } #barriers { From c135f6f3e1ef2868bba420087d124e0dd9c6e477 Mon Sep 17 00:00:00 2001 From: GunSmoker Date: Mon, 6 Feb 2023 20:56:09 +0300 Subject: [PATCH 4/5] Added natural earth_bank to cliffs --- project.mml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project.mml b/project.mml index fdeef517d6..3033eab992 100644 --- a/project.mml +++ b/project.mml @@ -585,7 +585,7 @@ Layer: (SELECT way, "natural", man_made FROM planet_osm_line - WHERE "natural" IN ('arete', 'cliff', 'ridge') OR man_made = 'embankment' + WHERE "natural" IN ('arete', 'cliff', 'ridge', 'earth_bank') OR man_made = 'embankment' ) AS cliffs properties: cache-features: true @@ -2073,7 +2073,7 @@ Layer: OR aerialway IN ('cable_car', 'gondola', 'mixed_lift', 'goods', 'chair_lift', 'drag_lift', 't-bar', 'j-bar', 'platter', 'rope_tow', 'zip_line') OR leisure IN ('slipway', 'track') OR waterway IN ('dam', 'weir') - OR "natural" IN ('arete', 'cliff', 'ridge')) + OR "natural" IN ('arete', 'cliff', 'ridge', 'earth_bank')) AND name IS NOT NULL) OR (tags @> 'golf=>hole' AND ref IS NOT NULL) ) AS text_line From c6c1d9f325ccd5c01ba25ab5fd26b9275377ff8a Mon Sep 17 00:00:00 2001 From: GunSmoker Date: Wed, 22 Feb 2023 13:41:21 +0300 Subject: [PATCH 5/5] Updated a zoom level to show earth_bank --- style/landcover.mss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style/landcover.mss b/style/landcover.mss index 56bade1763..6ce0eccf56 100644 --- a/style/landcover.mss +++ b/style/landcover.mss @@ -853,12 +853,12 @@ line-pattern-file: url('symbols/arete2.svg'); } } - [natural = 'earth_bank'][zoom >= 14] { - line-pattern-file: url('symbols/earth_bank.svg'); - } [man_made = 'embankment'][zoom >= 15]::man_made { line-pattern-file: url('symbols/embankment.svg'); } + [natural = 'earth_bank'][zoom >= 16] { + line-pattern-file: url('symbols/earth_bank.svg'); + } } #barriers {