From f9b5ff951399835a58af9573b87bedd2cf453b9a Mon Sep 17 00:00:00 2001
From: Jeroen Hoek <mail@jeroenhoek.nl>
Date: Tue, 7 Mar 2023 17:13:35 +0100
Subject: [PATCH 1/2] Add minimal rendering for natural=shrubbery
Minimal rendering for `natural=shrubbery`. This simply gives these
shrubby areas the same area fill as `natural=scrub` to provide a
base-line rendering preventing meaningless grey lines.
For more in-depth rendering of `natural=shrubbery`, including hints
for vegetation density and height, a Map Paint Style is available:
https://josm.openstreetmap.de/wiki/Styles/Greenery
---
resources/data/validator/geometry.mapcss | 1 +
resources/styles/standard/elemstyles.mapcss | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/resources/data/validator/geometry.mapcss b/resources/data/validator/geometry.mapcss
index ba24d428f..11ed07c47 100644
|
a
|
b
|
node[natural=mud],
|
| 69 | 69 | node[natural=sand], |
| 70 | 70 | node[natural=scree], |
| 71 | 71 | node[natural=scrub], |
| | 72 | node[natural=shrubbery], |
| 72 | 73 | node[natural=water], |
| 73 | 74 | node[natural=wetland], |
| 74 | 75 | node[natural=wood], |
diff --git a/resources/styles/standard/elemstyles.mapcss b/resources/styles/standard/elemstyles.mapcss
index db8f12249..84e089a81 100644
|
a
|
b
|
area[natural=shingle] {
|
| 4977 | 4977 | area[natural=scrub] { |
| 4978 | 4978 | fill-color: scrub#007000; |
| 4979 | 4979 | } |
| | 4980 | area[natural=shrubbery] { |
| | 4981 | fill-color: shrubbery#399a4e; |
| | 4982 | } |
| 4980 | 4983 | area[natural=fell] { |
| 4981 | 4984 | fill-color: natural#002f00; |
| 4982 | 4985 | } |
| … |
… |
node[natural=glacier],
|
| 5122 | 5125 | node[natural=scree], |
| 5123 | 5126 | node[natural=shingle], |
| 5124 | 5127 | node[natural=scrub], |
| | 5128 | node[natural=shrubbery], |
| 5125 | 5129 | node[natural=fell], |
| 5126 | 5130 | node[natural=heath], |
| 5127 | 5131 | node[natural=tree_row], |