]> git.openstreetmap.org Git - potlatch2.git/blobdiff - net/systemeD/potlatch2/mapfeatures/editors/RouteEditor.mxml
forward & backward in route roles
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / RouteEditor.mxml
index 9599620301d0e36946870cc095c5e0b571bdebce..33e308b0280835ec7a40626ba503773caef1453e 100644 (file)
@@ -19,7 +19,7 @@
     import mx.core.*;
    
     public function addRoutes():void {
-        for each(var relation:Relation in matchedRelations) {
+        for each(var relation:Object in matchedRelations) {
             var icon:RouteIcon = new RouteIcon();
             icon.setRoute(relation, RouteEditorFactory(_factory).icon);
             
     }
     
     public function routeClicked(event:Event):void {
-        var relation:Relation = RouteIcon(event.currentTarget).route;
+        var relation:Object = RouteIcon(event.currentTarget).route;
         trace(relation+" is clicked");
         var panel:RelationEditorPanel = RelationEditorPanel(
             PopUpManager.createPopUp(Application(Application.application), RelationEditorPanel, true));
-        panel.setRelation(relation);
+        panel.setRelation(relation["relation"]);
         PopUpManager.centerPopUp(panel);
     }