Different bug symbols for fixed/invalid bugs
authorAndy Allan <gravitystorm@gmail.com>
Mon, 22 Nov 2010 15:26:08 +0000 (15:26 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Mon, 22 Nov 2010 15:26:08 +0000 (15:26 +0000)
net/systemeD/potlatch2/utils/BugLoader.as
resources/bugs.css

index de24af6..4117a83 100644 (file)
@@ -16,6 +16,7 @@ package net.systemeD.potlatch2.utils {
         private var bugApiKey:String;
         private var _layer:VectorLayer;
         private static const STYLESHEET:String="bugs.css";
+        private static const status:Array = ["", "open", "fixed", "invalid"];
 
         public function BugLoader(map:Map, url:String, bugApiKey:String):void {
             this.map = map;
@@ -53,6 +54,7 @@ package net.systemeD.potlatch2.utils {
               tags["date_created"] = feature.properties.date_created;
               tags["date_updated"] = feature.properties.date_updated;
               tags["source"] = feature.properties.source;
+              tags["status"] = status[int(feature.properties.status)];
               var marker:Marker = layer.createMarker(tags, lat, lon);
             }
             layer.paint.updateEntityUIs(layer.getObjectsByBbox(map.edge_l,map.edge_r,map.edge_t,map.edge_b), true, false);
index 2c336fc..68bd474 100644 (file)
@@ -1,3 +1,9 @@
-node  { z-index: 2;
+node[status=fixed] { z-index: 2;
+            icon-image: features/bugs/fixed.png; }
+
+node[status=invalid] { z-index: 2;
+            icon-image: features/bugs/invalid.png; }
+
+node[status=open]  { z-index: 2;
             icon-image: features/bugs/open.png;
             text-offset: 14; font-family: DejaVu; text: name; font-size: 9; text_color: red; }
\ No newline at end of file