Ticket #22792: 0001-Add-minimal-rendering-for-natural-shrubbery.patch

File 0001-Add-minimal-rendering-for-natural-shrubbery.patch, 1.8 KB (added by JeroenHoek, 20 months ago)
  • resources/data/validator/geometry.mapcss

    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],  
    6969node[natural=sand],
    7070node[natural=scree],
    7171node[natural=scrub],
     72node[natural=shrubbery],
    7273node[natural=water],
    7374node[natural=wetland],
    7475node[natural=wood],
  • resources/styles/standard/elemstyles.mapcss

    diff --git a/resources/styles/standard/elemstyles.mapcss b/resources/styles/standard/elemstyles.mapcss
    index db8f12249..84e089a81 100644
    a b area[natural=shingle] {  
    49774977area[natural=scrub] {
    49784978    fill-color: scrub#007000;
    49794979}
     4980area[natural=shrubbery] {
     4981    fill-color: shrubbery#399a4e;
     4982}
    49804983area[natural=fell] {
    49814984    fill-color: natural#002f00;
    49824985}
    node[natural=glacier],  
    51225125node[natural=scree],
    51235126node[natural=shingle],
    51245127node[natural=scrub],
     5128node[natural=shrubbery],
    51255129node[natural=fell],
    51265130node[natural=heath],
    51275131node[natural=tree_row],