refactor node stateClasses and stylelist calculation
[potlatch2.git] / net / systemeD / halcyon / VectorLayer.as
index d919e987b1d0580fad52383294822c34c0ba0a4e..b27e0e8de04edcd1ee94a7a9a558337be8d1f779 100644 (file)
@@ -51,16 +51,14 @@ package net.systemeD.halcyon {
                public function getObjectsByBbox(left:Number, right:Number, top:Number, bottom:Number):Object {
                        // ** FIXME: this is just copied-and-pasted from Connection.as, which really isn't very
                        // good practice. Is there a more elegant way of doing it?
-                       var o:Object = { poisInside: [], poisOutside: [], waysInside: [], waysOutside: [] };
+                       var o:Object = { nodesInside: [], nodesOutside: [], waysInside: [], waysOutside: [] };
                        for each (var way:Way in ways) {
                                if (way.within(left,right,top,bottom)) { o.waysInside.push(way); }
                                                                  else { o.waysOutside.push(way); }
                        }
                        for each (var node:Node in nodes) {
-                               if (!node.hasParentWays) {
-                                       if (node.within(left,right,top,bottom)) { o.poisInside.push(node); }
-                                                                          else { o.poisOutside.push(node); }
-                               }
+                               if (node.within(left,right,top,bottom)) { o.nodesInside.push(node); }
+                                                                  else { o.nodesOutside.push(node); }
                        }
                        return o;
                }