add a feature selector to the simple view
[potlatch2.git] / resources / map_features.xml
index 099d104dbd3916efa0bb3cff6544bc5c1d70fdec..55dee80b86f376630a7ced3f9b3b650a525f6a5e 100644 (file)
@@ -2,9 +2,30 @@
 
 <mapFeatures>
 
+  <!-- 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 -->
 
   <feature name="Motorway">
+    <category>roads</category>
     <icon image="features/highway__motorway.png">
       <font size="16pt"><b>${ref}</b></font><br/>
     </icon>
   </feature>
 
   <feature name="Motorway link" icon="features/motorway_link.png">
+    <category>roads</category>
     <line/>
     <tag k="highway" v="motorway_link"/>
   </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>
@@ -29,6 +52,7 @@
   </feature>
 
   <feature name="Primary Road">
+    <category>roads</category>
     <icon>
       <font size="16pt"><b>${ref}</b></font><br/>
       <font size="10pt">${name}</font>
@@ -39,6 +63,7 @@
   </feature>
 
   <feature name="Secondary Road">
+    <category>roads</category>
     <icon>
       <font size="16pt"><b>${ref}</b></font><br/>
       <font size="10pt">${name}</font>
@@ -49,6 +74,7 @@
   </feature>
 
   <feature name="Tertiary Road">
+    <category>roads</category>
     <icon>
       <font size="14pt"><b>${name}</b></font><br/>
       <font size="10pt">${ref}</font>
@@ -59,6 +85,7 @@
   </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>
@@ -69,6 +96,7 @@
   </feature>
 
   <feature name="Road">
+    <category>roads</category>
     <icon image="features/highway__unclassified.png">
       <font size="14pt"><b>${name}</b></font>
     </icon>
   </feature>
 
   <feature name="Service Road">
+    <category>roads</category>
     <icon image="features/highway__service.png">
       <font size="14pt"><b>${name}</b></font>
     </icon>
   </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>
   </feature>
 
   <feature name="Living Street">
+    <category>roads</category>
     <icon>
       <font size="14pt"><b>${name}</b></font>
     </icon>
   </feature>
 
   <feature name="Track">
+    <category>roads</category>
     <icon>
       <font size="14pt"><b>${name}</b></font>
     </icon>
   </feature>
 
   <feature name="Pedestrian Road">
+    <category>roads</category>
     <icon>
       <font size="14pt"><b>${name}</b></font>
     </icon>
   <!-- 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 -->