Skip to content

Commit

Permalink
rearange wood/forest landuse
Browse files Browse the repository at this point in the history
add natural=bare_rock, screen, fell, heath
  • Loading branch information
kaylesk committed Feb 22, 2017
1 parent 2031a8d commit 9473fac
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 21 deletions.
40 changes: 19 additions & 21 deletions client/freemap_slovakia/landuses.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@
<xsl:template name="landuses">

<!-- landuse -->
<rule e="way" k="natural|landuse" v="forest|wood">
<rule e="way" k="wood|forest" v="*">
<rule e="way" k="wood|forest" v="coniferous">
<area fill="#B6D9BE"/>
</rule>
<rule e="way" k="wood|forest" v="deciduous">
<area fill="#D1E5C0"/>
</rule>
<rule e="way" k="wood|forest" v="mixed">
<area fill="#BFDEBA"/>
</rule>
</rule>
<rule e="way" k="wood" v="~">
<area fill="#C7DBBB"/>
</rule>
<rule e="way" k="*" v="*" zoom-min="16">
<caption k="name" font-style="bold" font-size="10dp" fill="#40ff40" stroke="#ffffff" stroke-width="2.0dp"/>
</rule>
</rule>
<rule e="way" k="landuse" v="*">
<rule e="way" k="landuse" v="farmyard">
<area fill="#80DFCFBC"/>
Expand Down Expand Up @@ -60,27 +79,6 @@
<caption k="name" font-style="bold" font-size="10dp" fill="#808080" stroke="#ffffff" stroke-width="2.0dp"/>
</rule>
</rule>

<!-- landuse -->
<rule e="way" k="natural|landuse" v="forest|wood|scrub">
<rule e="way" k="wood|forest" v="*">
<rule e="way" k="wood|forest" v="coniferous">
<area fill="#B6D9BE"/>
</rule>
<rule e="way" k="wood|forest" v="deciduous">
<area fill="#D1E5C0"/>
</rule>
<rule e="way" k="wood|forest" v="mixed">
<area fill="#BFDEBA"/>
</rule>
</rule>
<rule e="way" k="wood" v="~">
<area fill="#C7DBBB"/>
</rule>
<rule e="way" k="*" v="*" zoom-min="16">
<caption k="name" font-style="bold" font-size="10dp" fill="#40ff40" stroke="#ffffff" stroke-width="2.0dp"/>
</rule>
</rule>
<rule e="way" k="landuse" v="military">
<area src="file:/patterns/military.png"/>
</rule>
Expand Down
15 changes: 15 additions & 0 deletions client/freemap_slovakia/naturals.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@
<area fill="#b5d6f1" stroke="#b5d6f1" stroke-width="0.4dp"/>
</rule>
</rule>
<rule e="way" k="natural" v="bare_rock">
<area src="file:/patterns/barerock.png" fill="#d7d6d5" stroke-width="0"/>
</rule>
<rule e="way" k="natural" v="scree">
<area src="file:/patterns/scree.png" fill="#d7d6d5" stroke-width="0"/>
</rule>
<rule e="way" k="natural" v="fell">
<area fill="#e3e2a1" stroke-width="0"/>
</rule>
<rule e="way" k="natural" v="scrub">
<area fill="#d6e8b7" stroke-width="0"/>
</rule>
<rule e="way" k="natural" v="heath">
<area fill="#d6e8b7" stroke-width="0"/>
</rule>
<rule e="way" k="natural" v="glacier">
<area fill="#fafaff" stroke="#add8e6" stroke-width="0.8dp"/>
</rule>
Expand Down
Binary file added client/freemap_slovakia/patterns/barerock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/freemap_slovakia/patterns/scree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions generator/tag-mapping-fm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<osm-tag key="waterway" value="waterfall" zoom-appear="12" />
<osm-tag key="natural" value="volcano" zoom-appear="10" />
<osm-tag key="natural" value="saddle" zoom-appear="12" />
<osm-tag key="natural" value="fell" zoom-appear="11" />

</pois>

Expand Down Expand Up @@ -315,6 +316,9 @@
<osm-tag key="natural" value="land" zoom-appear="11" />
<osm-tag key="natural" value="marsh" zoom-appear="11" />
<osm-tag key="natural" value="scrub" zoom-appear="11" />
<osm-tag key="natural" value="bare_rock" zoom-appear="11" />
<osm-tag key="natural" value="fell" zoom-appear="11" />
<osm-tag key="natural" value="scree" zoom-appear="11" />
<osm-tag key="natural" value="water" zoom-appear="8" />
<osm-tag key="natural" value="wetland" zoom-appear="12" />
<osm-tag key="natural" value="wood" zoom-appear="8" />
Expand Down

0 comments on commit 9473fac

Please sign in to comment.