Ticket #2982: landuse-wood.diff

File landuse-wood.diff, 2.6 KB (added by Pekka Lampila <pekka.lampila@…>, 16 years ago)

Patch to add preset and a style for coloring landuse=wood. Also rename natural=wood and landuse=forest presets

  • presets/presets.xml

    diff --git a/presets/presets.xml b/presets/presets.xml
    index ac0f04d..253acb6 100755
    a b are supplied, then "values" will be treated as "display_values" and translated i  
    29472947            <text key="height" text="Height" default="" delete_if_empty="true" />
    29482948            <text key="name:botanical" text="Botanical Name" default="" delete_if_empty="true" />
    29492949        </item>
    2950         <item name="Wood" icon="presets/landuse.png" type="node,closedway,relation">
     2950        <item name="Natural primeval woodland" icon="presets/landuse.png" type="node,closedway,relation">
    29512951            <link href="http://wiki.openstreetmap.org/wiki/Tag:natural=wood"
    29522952                  de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:natural=wood" />
    29532953            <label text="Edit Wood" />
    are supplied, then "values" will be treated as "display_values" and translated i  
    29552955            <text key="name" text="Name" default="" delete_if_empty="true" />
    29562956            <combo key="wood" text="Type" values="coniferous,deciduous,mixed" default="" delete_if_empty="true" />
    29572957        </item>
    2958         <item name="Forest" icon="presets/landuse.png" type="node,closedway,relation">
     2958        <item name="Woodland" icon="presets/landuse.png" type="node,closedway,relation">
     2959            <link href="http://wiki.openstreetmap.org/wiki/Tag:landuse=wood"
     2960                  de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:landuse=wood" />
     2961            <label text="Edit Wood" />
     2962            <key key="landuse" value="wood" />
     2963            <text key="name" text="Name" default="" delete_if_empty="true" />
     2964            <combo key="wood" text="Type" values="coniferous,deciduous,mixed" default="" delete_if_empty="true" />
     2965        </item>
     2966        <item name="Managed forest" icon="presets/landuse.png" type="node,closedway,relation">
    29592967            <link href="http://wiki.openstreetmap.org/wiki/Tag:landuse=forest"
    29602968                  de.href="http://wiki.openstreetmap.org/wiki/DE:Tag:landuse=forest" />
    29612969            <label text="Edit Forest Landuse" />
  • styles/standard/elemstyles.xml

    diff --git a/styles/standard/elemstyles.xml b/styles/standard/elemstyles.xml
    index 463c04a..350df38 100644
    a b For external files the <rules> should have following elements:  
    31473147        </rule>
    31483148
    31493149        <rule>
     3150                <condition k="landuse" v="wood"/>
     3151                <area colour="forest#b1efc8"/>
     3152                <icon src="misc/landmark/trees.png"/>
     3153                <scale_min>1</scale_min>
     3154                <scale_max>50000</scale_max>
     3155        </rule>
     3156
     3157        <rule>
    31503158                <condition k="landuse" v="forest"/>
    31513159                <area colour="forest#b1efc8"/>
    31523160                <icon src="misc/landmark/trees.png"/>