more selection fixes
[potlatch2.git] / net / systemeD / halcyon / WayUI.as
index 6933fd443525907c0103bab17b57cbf725e73a65..e1b6a43a73ea25d2ac8fd8727521d29e80052a5f 100755 (executable)
@@ -194,12 +194,14 @@ package net.systemeD.halcyon {
                        var r:Number;
                        var nodetags:Object;
                        var highlight:Boolean=stateClasses["showNodes"]; // !=null
+                       var nodeSelected:int=stateClasses["nodeSelected"];
                        for (var i:uint = 0; i < way.length; i++) {
                 var node:Node = way.getNode(i);
                                nodetags=node.getTagsCopy();
                                if (i==0) { nodetags['_heading']= heading[i]; }
                                     else { nodetags['_heading']=(heading[i]+heading[i-1])/2; }
                                if (highlight) { nodetags[':selectedway']='yes'; }
+                               if (node.id==nodeSelected) { nodetags[':selected']='yes'; }
                                sl=map.ruleset.getStyles(node,nodetags);
                                if (sl.hasStyles()) {
                                        if (!map.pois[node.id]) { map.pois[node.id]=new NodeUI(node,map,r); }