select and move POI nodes, and a handful of smaller fixes too
[potlatch2.git] / net / systemeD / halcyon / Map.as
index 1334896f6ea18e3a58780ce0d6bbe076e83a4f19..4b78c3e6c189d1e5de0e3f69aab2a97340a77a8e 100755 (executable)
@@ -286,7 +286,15 @@ package net.systemeD.halcyon {
 
         public function setHighlight(entity:Entity, settings:Object):void {
                        var stateType:String;
-            if ( entity is Way ) {
+                       var ui:EntityUI=null;
+                       if      ( entity is Way  ) { ui = ways[entity.id]; }
+                       else if ( entity is Node ) { ui = pois[entity.id]; }
+                       if (ui==null) { return; }
+                       for (stateType in settings) {
+                               ui.setHighlight(stateType, settings[stateType]);
+                       }
+                       ui.redraw();
+/*            if ( entity is Way ) {
                 var wayUI:WayUI = ways[entity.id];
                 if (wayUI==null) { return; }
                                for (stateType in settings) {
@@ -294,13 +302,14 @@ package net.systemeD.halcyon {
                                }
                                wayUI.redraw();
             } else if (entity is Node) {
-                               var nodeUI:NodeUI = nodes[entity.id];
+                               var nodeUI:NodeUI = pois[entity.id];
                 if (nodeUI==null) { return; }
                                for (stateType in settings) {
                        nodeUI.setHighlight(stateType, settings[stateType]);
                                }
                                nodeUI.redraw();
                        }
+*/
         }
 
         // Handle mouse events on ways/nodes