Use the description of the bug to display the label
[potlatch2.git] / net / systemeD / potlatch2 / utils / BugLoader.as
index ec771dd72bbbbb45d85eb0af4eefeadda5d670b6..43de9e9a3794e591f7e02e022e4fcb868f7717ee 100644 (file)
@@ -40,7 +40,7 @@ package net.systemeD.potlatch2.utils {
               var lon:Number = feature.geometry.coordinates[0];
               var lat:Number = feature.geometry.coordinates[1];
               trace(lat, lon);
-              var node:Node = layer.createNode({"name":"No right turn"}, lat, lon);
+              var node:Node = layer.createNode({"name":feature.properties.description,"bug_id":feature.id}, lat, lon);
               layer.registerPOI(node);
             }
             layer.paint.updateEntityUIs(layer.getObjectsByBbox(map.edge_l,map.edge_r,map.edge_t,map.edge_b), false, false);