Add support for relations to match multiple tags. Turned out to be a bit more involve...
[potlatch2.git] / resources / map_features / paths.xml
1 <featureGroup>\r
2   <feature name="Footpath">\r
3     <category>paths</category>\r
4     <icon image="features/paths__footway.png">\r
5       ${name} <i>${ref}</i>\r
6     </icon>\r
7     <help>http://wiki.openstreetmap.org/wiki/Tag:highway%3Dfootway</help>\r
8     <line/>\r
9     <tag k="highway" v="footway"/>\r
10     <inputSet ref="path"/>\r
11     <inputSet ref="common"/>\r
12     <inputset ref="naming"/>\r
13   </feature>\r
14 \r
15   <feature name="Cycle path">\r
16     <category>paths</category>\r
17     <icon image="features/paths__bike.png">\r
18       ${name} <i>${ncn_ref} ${rcn_ref} ${lcn_ref} ${ref}</i>\r
19     </icon>\r
20     <help>http://wiki.openstreetmap.org/wiki/Tag:highway%3Dcycleway</help>\r
21     <line/>\r
22     <tag k="highway" v="cycleway"/>\r
23     <inputSet ref="path"/>\r
24     <inputSet ref="common"/>\r
25     <inputset ref="naming"/>\r
26   </feature>\r
27 \r
28   <feature name="Pedestrian street">\r
29     <category>paths</category>\r
30     <icon image="features/paths__pedestrian.png">\r
31       <font size="14pt">\r
32         <b>${name}</b>\r
33       </font>\r
34     </icon>\r
35 \r
36     <tag k="highway" v="pedestrian"/>\r
37     <!-- pedestrian roads can be lines or areas, with different tags -->\r
38     <!-- TODO - implement this! -->\r
39     <line>\r
40       <tag k="highway" v="pedestrian"/>\r
41     </line>\r
42     <area>\r
43       <tag k="highway" v="pedestrian"/>\r
44       <tag k="area" v="yes"/>\r
45     </area>\r
46     <inputSet ref="minorRoad"/>\r
47     <inputSet ref="common"/>\r
48     <inputset ref="naming"/>\r
49   </feature>\r
50 \r
51   <feature name="Bridleway">\r
52     <category>paths</category>\r
53     <icon image="features/paths__bridleway.png">\r
54     </icon>\r
55 \r
56     <line/>\r
57     <tag k="highway" v="bridleway"/>\r
58     <inputSet ref="path"/>\r
59     <inputSet ref="common"/>\r
60     <inputset ref="naming"/>\r
61   </feature>\r
62 \r
63   <feature name="Steps">\r
64     <category>paths</category>\r
65     <icon image="features/paths__steps.png">\r
66     </icon>\r
67     <help>http://wiki.openstreetmap.org/wiki/Tag:highway%3Dsteps</help>\r
68 \r
69     <line/>\r
70     <tag k="highway" v="steps"/>\r
71     <inputSet ref="path"/>\r
72     <input type="freetext" presence="always" category="Naming" name="Number of steps" key="step_count" description="The number of steps in the way" priority="low"/>\r
73     <inputSet ref="common"/>\r
74   </feature>\r
75   \r
76   <feature name="Generic path">
77     <category>paths</category>
78     <icon image="features/paths__unofficial.png">
79       ${name} <i>${ncn_ref} ${rcn_ref} ${lcn_ref} ${ref}</i>
80     </icon>
81     <help>http://wiki.openstreetmap.org/wiki/Tag:highway%3Dpath</help>
82
83     <line/>
84     <tag k="highway" v="path"/>
85     <inputSet ref="path"/>
86     <inputSet ref="common"/>
87     <inputset ref="naming"/>
88   </feature>
89
90   \r
91   <!-- Bicycle routes -->\r
92   <feature name="National Cycle Network">\r
93     <category>paths</category>\r
94     <icon image="features/route__ncn.png" background="red" foreground="white">
95       <font size="14pt">\r
96         <b>${ref}</b>\r
97       </font>\r
98       <br/>\r
99       <font size="12pt">${name}</font>\r
100     </icon>\r
101 \r
102     <relation/>\r
103     <tag k="type" v="route"/>\r
104     <tag k="route" v="bicycle"/>
105     <tag k="network" v="ncn"/>\r
106 \r
107     <inputSet ref="route"/>\r
108     <inputSet ref="common"/>\r
109   </feature>\r
110 \r
111 \r
112   <feature name="Regional Cycle Network">\r
113     <category>paths</category>\r
114     <icon image="features/route__rcn.png" background="cyan" foreground="white">
115       <font size="14pt"><b>${ref}</b></font><br/>\r
116       <font size="12pt">${name}</font>\r
117     </icon>\r
118 \r
119     <relation/>\r
120     <tag k="type" v="route"/>\r
121     <tag k="route" v="bicycle"/>\r
122     <tag k="network" v="rcn"/>\r
123 \r
124     <inputSet ref="route"/>\r
125     <inputSet ref="common"/>\r
126   </feature>\r
127 \r
128 \r
129   <feature name="Local Cycle Network">\r
130     <category>paths</category>\r
131     <icon image="features/route__lcn.png" background="blue" foreground="white">\r
132       <font size="14pt">\r
133         <b>${ref}</b>\r
134       </font>\r
135       <br/>\r
136       <font size="12pt">${name}</font>\r
137     </icon>\r
138 \r
139     <relation/>\r
140     <tag k="type" v="route"/>\r
141     <tag k="route" v="bicycle"/>
142     <tag k="network" v="lcn"/>\r
143 \r
144     <inputSet ref="route"/>\r
145     <inputSet ref="common"/>\r
146   </feature>\r
147   \r
148   <!-- hiking -->\r
149   \r
150   <feature name="Long Distance Path">\r
151     <category>paths</category>\r
152     <icon image="features/route__nwn.png" background="green" foreground="white">
153       <font size="14pt">\r
154         <b>${ref}</b>\r
155       </font>\r
156       <br/>\r
157       <font size="12pt">${name}</font>\r
158     </icon>\r
159 \r
160     <relation/>\r
161     <tag k="type" v="route"/>\r
162     <tag k="route" v="hiking" vmatch="hiking|foot"/>\r
163 \r
164     <inputSet ref="route"/>\r
165     <inputSet ref="common"/>\r
166   </feature>\r
167   \r
168 </featureGroup>