<mapFeatures>
- <!-- Roads -->
+ <!-- Categories -->
+
+ <category name="Roads" id="roads">
+ </category>
+
+ <category name="Paths" id="paths">
+ </category>
+
+ <category name="Transport" id="transport">
+ </category>
+
+ <category name="Water" id="water">
+ </category>
+ <category name="Natural" id="natural">
+ </category>
+
+ <category name="Admin" id="admin">
+ </category>
+
+ <!-- Roads -->
+
+ <inputSet id="majorRoad">
+ <inputSet ref="roadNames"/>
+ <inputSet ref="roadRefs"/>
+ <inputSet ref="roadRestrictions"/>
+ <inputSet ref="roadPhysical"/>
+ </inputSet>
+
+ <inputSet id="minorRoad">
+ <inputSet ref="roadNames"/>
+ <inputSet ref="roadRestrictions"/>
+ <inputSet ref="roadPhysical"/>
+ </inputSet>
+
+ <inputSet id="roadNames">
+ <input type="freetext" presence="always"
+ name="Name" category="Naming" priority="highest"
+ key="name" description="The most common name"/>
+ <input type="freetext" presence="onTagMatch"
+ name="International Name" category="Naming"
+ key="int_name" description="The internationally recognised name"/>
+ <input type="freetext" presence="onTagMatch"
+ name="Historical Name" category="Naming" priority="low"
+ key="old_name" description="The historic or previous name"/>
+ </inputSet>
+
+ <inputSet id="roadRefs">
+ <input type="freetext" presence="always"
+ name="Reference" category="Naming" priority="high"
+ key="ref" description="The official reference number"/>
+ <input type="freetext" presence="onTagMatch"
+ name="International Reference" category="Naming"
+ key="int_ref" description="The official international reference number"/>
+ <input type="freetext" presence="onTagMatch"
+ name="Old Reference" category="Naming" priority="low"
+ key="old_ref" description="The historic or previous reference number"/>
+ </inputSet>
+
+ <inputSet id="roadPhysical">
+ <input type="slider" presence="onTagMatch"
+ name="Layer" category="Physical" description="Relative vertical positions (-5 lowest, +5 highest)"
+ key="layer" min="-5" max="5" default="0"/>
+ <input type="freetext" presence="onTagMatch"
+ name="Width" category="Physical"
+ key="width" description="Width of the road"/>
+ <input type="choice" presence="onTagMatch"
+ name="Surface" category="Physical" description="Type of road surface"
+ key="surface">
+ <choice value="unpaved" text="Unpaved" description="Road surface is unsealed"/>
+ <choice value="paved" text="Paved" description="Road surface is sealed"/>
+ <choice value="asphalt" text="Asphalt"/>
+ <choice value="concrete" text="Concrete"/>
+ <choice value="paving_stones" text="Paving stones"/>
+ <choice value="cobblestone" text="Cobblestone"/>
+ <choice value="sand" text="Sand"/>
+ <choice value="gravel" text="Gravel"/>
+ </input>
+ <input type="choice" presence="onTagMatch"
+ name="Bridge" category="Physical" description="Road goes over a bridge"
+ key="bridge">
+ <choice value="yes" text="Generic Bridge" description="Generic bridge -- type unknown"/>
+ <choice value="viaduct" text="Viaduct" description="Viaduct"/>
+ <choice value="suspension" text="Suspension bridge"/>
+ </input>
+ <input type="choice" presence="onTagMatch"
+ name="Tunnel" category="Physical" description="Road goes into a tunnel"
+ key="tunnel">
+ <choice value="yes" text="Tunnel" description="Generic tunnel"/>
+ </input>
+ </inputSet>
+
+ <inputSet id="roadRestrictions">
+ <input type="choice" presence="onTagMatch"
+ name="Oneway" category="Restrictions" description="Oneway roads"
+ key="oneway">
+ <choice value="yes" match="yes|true|1" text="One way"
+ description="Road can only be travelled in direction of way" icon="features/oneway__yes.png"/>
+ <choice value="no" match="no|false|0" text="Two way"
+ description="Road can be travelled in both directions" icon="features/oneway__no.png"/>
+ <choice value="-1" match="-1|reverse" text="One way reverse"
+ description="Road can be travelled in opposite direction to way" icon="features/oneway__-1.png"/>
+ </input>
+ <input type="speed" presence="onTagMatch"
+ name="Speed Limit" category="Restrictions" description="Maximum permitted speed on this road"
+ key="maxspeed"/>
+ </inputSet>
+
<feature name="Motorway">
+ <category>roads</category>
<icon image="features/highway__motorway.png">
<font size="16pt"><b>${ref}</b></font><br/>
</icon>
<line/>
<tag k="highway" v="motorway"/>
+
+ <inputSet ref="majorRoad"/>
</feature>
<feature name="Motorway link" icon="features/motorway_link.png">
+ <category>roads</category>
<line/>
<tag k="highway" v="motorway_link"/>
+
+ <inputSet ref="majorRoad"/>
</feature>
<feature name="Trunk Road">
+ <category>roads</category>
<icon image="features/highway__trunk.png">
<font size="16pt"><b>${ref}</b></font><br/>
<font size="10pt">${name}</font>
<line/>
<tag k="highway" v="trunk"/>
+
+ <inputSet ref="majorRoad"/>
</feature>
<feature name="Primary Road">
+ <category>roads</category>
<icon>
<font size="16pt"><b>${ref}</b></font><br/>
<font size="10pt">${name}</font>
<line/>
<tag k="highway" v="primary"/>
+
+ <inputSet ref="majorRoad"/>
</feature>
<feature name="Secondary Road">
+ <category>roads</category>
<icon>
<font size="16pt"><b>${ref}</b></font><br/>
<font size="10pt">${name}</font>
<line/>
<tag k="highway" v="secondary"/>
+
+ <inputSet ref="majorRoad"/>
</feature>
<feature name="Tertiary Road">
+ <category>roads</category>
<icon>
<font size="14pt"><b>${name}</b></font><br/>
<font size="10pt">${ref}</font>
<line/>
<tag k="highway" v="tertiary"/>
+
+ <inputSet ref="majorRoad"/>
</feature>
<feature name="Residential Road">
+ <category>roads</category>
<icon image="features/highway__residential.png">
<font size="14pt"><b>${name}</b></font><br/>
<font size="6pt">${postal_code}</font>
<line/>
<tag k="highway" v="residential"/>
+
+ <inputSet ref="minorRoad"/>
</feature>
<feature name="Road">
+ <category>roads</category>
<icon image="features/highway__unclassified.png">
<font size="14pt"><b>${name}</b></font>
</icon>
<line/>
<tag k="highway" v="unclassified"/>
+
+ <inputSet ref="minorRoad"/>
</feature>
<feature name="Service Road">
+ <category>roads</category>
<icon image="features/highway__service.png">
<font size="14pt"><b>${name}</b></font>
</icon>
<line/>
<tag k="highway" v="service"/>
+
+ <inputSet ref="minorRoad"/>
</feature>
<feature name="Unknown Road">
+ <category>roads</category>
<icon>
<font size="10pt">This road has not been given a specific type. It's a road, and that's all that's known.</font>
</icon>
<line/>
- <tag k="highway" v="tertiary"/>
+ <tag k="highway" v="road"/>
+
+ <inputSet ref="minorRoad"/>
</feature>
<feature name="Living Street">
+ <category>roads</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
<line/>
<tag k="highway" v="tertiary"/>
+
+ <inputSet ref="minorRoad"/>
</feature>
<feature name="Track">
+ <category>roads</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
<line/>
<tag k="highway" v="track"/>
+
+ <inputSet ref="minorRoad"/>
</feature>
<feature name="Pedestrian Road">
+ <category>roads</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
<line/>
<tag k="highway" v="pedestrian"/>
+
+ <inputSet ref="minorRoad"/>
</feature>
<!-- Paths -->
<feature name="Cycle Path">
+ <category>paths</category>
<icon>
${name} <i>${ncn_ref} ${rcn_ref} ${lcn_ref} ${ref}</i>
</icon>
</feature>
<feature name="Foot Path">
+ <category>paths</category>
<icon>
${name} <i>${ref}</i>
</icon>
</feature>
<feature name="Bridleway">
+ <category>paths</category>
<icon>
</icon>
</feature>
<feature name="Steps">
+ <category>paths</category>
<icon>
</icon>
<!-- Waterway -->
<feature name="Stream">
+ <category>water</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
</feature>
<feature name="River">
+ <category>water</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
</feature>
<feature name="Canal">
+ <category>water</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
</feature>
<feature name="Dam">
+ <category>water</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
<!-- Railways -->
<feature name="Railway Line">
+ <category>transport</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
</feature>
<feature name="Tram Line">
+ <category>transport</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
</feature>
<feature name="Subway Line">
+ <category>transport</category>
<icon>
<font size="14pt"><b>${name}</b></font>
</icon>
<tag k="railway" v="subway"/>
</feature>
- <feature name="Tram Line">
- <icon>
- <font size="14pt"><b>${name}</b></font>
- </icon>
-
- <line/>
- <tag k="railway" v="tram"/>
- </feature>
-
<!-- building -->