Cafe feature+add name for rendering. Cuisine set.
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 21 Mar 2010 23:14:15 +0000 (23:14 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Sun, 21 Mar 2010 23:14:15 +0000 (23:14 +0000)
resources/map_features.xml
resources/potlatch.css

index b2cdd82..544c6c5 100644 (file)
     <input type="freetext" presence="onTagMatch" category="Address" description="The name of the house, e.g. Riverbank Cottage" name="Building Name" key="name"/>
     <input type="freetext" presence="onTagMatch" category="Address" description="The Street Name (optional)" name="Street Name" key="addr:street"/>
     <input type="freetext" presence="onTagMatch" category="Address" description="The postcode" name="Postcode" key="addr:postcode"/>
-  </inputSet> 
+  </inputSet>
+  
+  <inputSet id="cuisine">
+    <input type="choice" presence="always" name="Cuisine" category="Eating" description="The type of food that they serve" key="cuisine">
+      <choice value="pizza" text="Pizza"/>
+      <choice value="chinese" text="Chinese"/>
+      <choice value="burger" text="Burger"/>
+      <choice value="sea_food" text="Sea Food"/>
+      <choice value="sandwich" text="Sandwich"/>
+      <help>http://wiki.openstreetmap.org/wiki/Key:cuisine</help>
+    </input>
+  </inputSet>
   
   <inputSet id="naptan">
     <input type="freetext" presence="onTagMatch" category="Naptan" description="12 character internal Naptan ID" name="Atco Code" key="naptan:AtcoCode" />
     <point />
     <tag k="amenity" v="restaurant"/>
     <inputSet ref="names"/>
-    <inputSet ref="buildingAddress" />
+    <inputSet ref="buildingAddress"/>
+    <inputSet ref="cuisine"/>
+  </feature>
+  
+  <feature name="Cafe">
+    <category>entertainment</category>
+    <icon image="icons/cafe.png">
+      ${name}
+    </icon>
+    <help>http://wiki.openstreetmap.org/wiki/Tag:amenity%3Dcafe</help>
+    <point />
+    <tag k="amenity" v="cafe"/>
+    <inputSet ref="names"/>
+    <inputSet ref="buildingAddress"/>
+    <inputSet ref="cuisine"/>
   </feature>
 
   <feature name="Post Box">
index cad3c0e..20e2476 100644 (file)
@@ -81,14 +81,14 @@ node[railway=station] { icon-image: icons/station.png; text-offset: 13; font-fam
 node[aeroway=aerodrome] { icon-image: icons/airport.png; text-offset: 13; font-family: DejaVu; text: name; font-size: 10; }
 node[amenity=atm] { icon-image: icons/atm.png; }
 node[highway=bus_stop] { icon-image: icons/bus_stop.png; }
-node[amenity=cafe] { icon-image: icons/cafe.png; }
+node[amenity=cafe] { icon-image: icons/cafe.png; text-offset: 15; text: name; }
 node[shop=convenience] { icon-image: icons/convenience.png; }
 node[amenity=fast_food] { icon-image: icons/fast_food.png; }
 node[amenity=fire_station] { icon-image: icons/fire_station.png; }
 node[amenity=hospital] { icon-image: icons/hospital.png; }
 node[tourism=hotel] { icon-image: icons/hotel.png; }
 node[amenity=parking] { icon-image: icons/parking.png; }
-node[amenity=bicycle_parking] { icon-image: icons/parking_cycle.png; text: capacity; text-offset: 15; }
+node[amenity=bicycle_parking] { icon-image: icons/parking_cycle.png; text-offset: 15; text: capacity; }
 node[amenity=pharmacy] { icon-image: icons/pharmacy.png; }
 node[amenity=pharmacy][dispensing=yes] { icon-image: icons/pharmacy_dispensing.png; }
 node[amenity=police] { icon-image: icons/police.png; }