Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
Support mountain bike routes
Browse files Browse the repository at this point in the history
  • Loading branch information
systemed committed Sep 30, 2011
1 parent ef5d862 commit 5b211c2
Show file tree
Hide file tree
Showing 5 changed files with 2,062 additions and 0 deletions.
Binary file added resources/features/route__mtb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions resources/map_features.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,14 @@
<font size="12pt">${name}</font>
</icon>
</input>
<input type="route" name="Mountain bike route" description="A signposted route for mountain biking." category="Cycle" priority="lowest">
<match k="type" v="route"/>
<match k="route" v="mtb"/>
<icon image="features/route__mtb.png" background="#9f4404" foreground="white">
<font size="14pt"><b>${ref}</b></font><br/>
<font size="12pt">${name}</font>
</icon>
</input>
</inputSet>

<inputSet id="bicycle-permission">
Expand Down
25 changes: 25 additions & 0 deletions resources/map_features/paths.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,31 @@
<inputSet ref="route"/>
<inputSet ref="common"/>
</feature>

<feature name="Mountain bike route">
<category>paths</category>
<icon image="features/route__mtb.png" background="#9f4404" foreground="white">
<font size="14pt">
<b>${ref}</b>
</font>
<br/>
<font size="12pt">${name}</font>
</icon>

<relation/>
<tag k="type" v="route"/>
<tag k="route" v="mtb"/>

<input type="choice" presence="always" category="Details" name="Route type" key="mtb:type" description="What type of route is it?">
<choice value="crosscountry" text="Cross-country"/>
<choice value="allmountain" text="All-mountain"/>
<choice value="freeride" text="Freeride"/>
<choice value="downhill" text="Downhill"/>
<choice value="trial" text="Trial"/>
</input>
<inputSet ref="route"/>
<inputSet ref="common"/>
</feature>

<!-- hiking -->

Expand Down
1 change: 1 addition & 0 deletions resources/stylesheets/core_relations.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ relation[type=route] way::route { z-index: 1; width: 13; color: blue; opacity: 0
relation[type=route][route=bicycle][network=ncn] way::route { z-index: 1; width: 12; color: red; opacity: 0.3; }
relation[type=route][route=bicycle][network=rcn] way::route { z-index: 1; width: 12; color: cyan; opacity: 0.3; }
relation[type=route][route=bicycle][network=lcn] way::route { z-index: 1; width: 12; color: blue; opacity: 0.3; }
relation[type=route][route=mtb] way::route { z-index: 1; width: 12; color: brown; opacity: 0.3; }
relation[type=route][route=foot] way::route { z-index: 1; width: 10; color: #80ff80; opacity: 0.6; }
Loading

0 comments on commit 5b211c2

Please sign in to comment.