minor additions to map features
authorAndy Allan <gravitystorm@gmail.com>
Sun, 10 Jan 2010 16:25:32 +0000 (16:25 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Sun, 10 Jan 2010 16:25:32 +0000 (16:25 +0000)
resources/map_features.xml

index cd92e3b..c71b923 100644 (file)
@@ -21,6 +21,9 @@
 
   <category name="Admin" id="admin">
   </category>
+  
+  <category name="Buildings" id="buildings">
+  </category>
 
   <!-- Roads -->
   
     <inputSet ref="roadRefs"/>
   </inputSet>
   
+  <inputSet id="rivers">
+    <input type="freetext" presence="always" name="Name" category="Naming" key="name" description="The name" />
+    <input type="freetext" presence="always" name="Width" category="Properties" key="width" description="The width in metres" />
+  </inputSet>
   
   <feature name="Motorway">
     <category>roads</category>
   <!-- Barriers -->
 
   <feature name="Fence">
+    <category>natural</category>
     <icon>
     </icon>
 
   </feature>
 
   <feature name="Hedge">
+    <category>natural</category>
     <icon>
     </icon>
 
   </feature>
 
   <feature name="Wall">
+    <category>natural</category>
     <icon>
     </icon>
 
 
     <line/>
     <tag k="waterway" v="river"/>
+    <inputSet ref="rivers" />
   </feature>
 
   <feature name="Canal">
   </feature>
 
   <feature name="Railway Station">
+    <category>transport</category>
     <icon image="features/transport__railway.png">
       <font size="14pt"><b>${name}</b></font>
     </icon>
     <tag k="railway" v="station"/>
   </feature>
   
+  <feature name="Railway Station">
+    <category>buildings</category>
+    <icon image="features/transport__railway.png">
+      <font size="14pt"><b>${name}</b></font>
+    </icon>
+    
+    <area/>
+    <tag k="building" v="station"/>
+  </feature>
+  
   <!-- areas -->
 
   <feature name="Building">
+    <category>buildings</category>
     <icon>
       <b>${name} ${addr:housename}</b><br/>
       ${addr:housenumber} ${addr:street} ${addr:postcode}
   </feature>
 
   <feature name="Park">
+    <category>natural</category>
     <icon>
       <b>${name}</b><br/>
     </icon>
   </feature>
   
   <feature name="Forest">
+    <category>natural</category>
     <icon>
       <b>${name}</b><br/>
     </icon>
   
   <!-- POI -->
   <feature name="Bus Stop">
-    <icon>
+    <category>transport</category>
+    <icon image="features/transport__bus.png">
       ${name} ${local_ref}
     </icon>
     <point />