Add subway rendering and bus stops to map_features
authorAndy Allan <gravitystorm@gmail.com>
Sun, 6 Dec 2009 11:22:33 +0000 (11:22 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Sun, 6 Dec 2009 11:22:33 +0000 (11:22 +0000)
resources/map_features.xml
resources/potlatch.css

index 05c06ec..a3ab488 100644 (file)
     <input type="freetext" presence="onTagMatch" category="Address" description="The postcode" name="Postcode" key="addr:postcode"/>
   </inputSet> 
   
+  <inputSet id="naptan">
+    <input type="freetext" presence="onTagMatch" category="Naptan" description="12 character internal Naptan ID" name="Atco Code" key="naptan:AtcoCode" />
+    <input type="choice" presence="onTagMatch" category="Naptan" description="The eight-point compass bearning" name="Naptan Bearing" key="naptan:Bearing" >
+      <choice value="N"  match="N"  text="N"  description=""/>
+      <choice value="NE" match="NE" text="NE" description=""/>
+      <choice value="E"  match="E"  text="E"  description=""/>
+      <choice value="SE" match="SE" text="SE" description=""/>
+      <choice value="S"  match="S"  text="S"  description=""/>
+      <choice value="SW" match="SW" text="SW" description=""/>
+      <choice value="W"  match="W"  text="W"  description=""/>
+      <choice value="NW" match="NW" text="NW" description=""/>
+    </input>
+    <input type="freetext" presence="onTagMatch" category="Naptan" description="The naptan common name" name="Naptan Common Name (read-only)" key="naptan:CommonName" />
+    <input type="freetext" presence="onTagMatch" category="Naptan" description="" name="Naptan Indicator (read-only)" key="naptan:Indicator" />
+    <input type="freetext" presence="onTagMatch" category="Naptan" description="" name="Naptan Street (read-only)" key="naptan:Street" />
+    <input type="freetext" presence="onTagMatch" category="Naptan" description="Delete this when the details have been verified on-the-ground" name="Naptan Verified?" key="naptan:verified" />
+  </inputSet>
+  
+  <inputSet id="buses">
+    <input type="freetext" presence="always" category="Bus Stop" name="Stop Name" key="name" description="The name of the bus stop" />
+    <input type="freetext" presence="always" category="Bus Stop" name="Local Ref" key="local_ref" description="The local reference of the stop, e.g. L, BX" />
+    <inputSet ref="naptan" />
+  </inputSet>
+  
   <feature name="Motorway">
     <category>roads</category>
     <icon image="features/highway__motorway.png">
     <tag k="railway" v="station"/>
   </feature>
   
-  <!-- building -->
+  <!-- areas -->
 
   <feature name="Building">
     <icon>
     <area/>
     <tag k="landuse" v="forest"/>
   </feature>
-
+  
+  <!-- POI -->
+  <feature name="Bus Stop">
+    <icon>
+      ${name} ${local_ref}
+    </icon>
+    <point />
+    <tag k="highway" v="bus_stop"/>
+    <inputSet ref="buses" />
+  </feature>
 </mapFeatures>
 
index c2b2737..e5c3edc 100644 (file)
@@ -102,6 +102,9 @@ way node[barrier=gate], way node[highway=gate] { icon-image: icons/gate.png; }
 way[railway=rail]
        { z-index: 3; color: black; width: 5; } 
        { z-index: 4; color: white; width: 3; dashes: 12,12; }
+way[railway=subway]
+        { z-index: 3; color: #444444; width: 5; }
+        { z-index: 4; color: white; width: 3; dashes: 8,8; }
 
 /* Change the road colour based on dynamically set "highlighted" tag (see earlier) */