Very basic map event support, plus calculate area centroids correctly.
[potlatch2.git] / net / systemeD / halcyon / connection / Way.as
index f26d5b6419acce472440285b7d6838324fde8551..ec37b0ff18e6ad5e6d05642340d261e0ccd49b41 100644 (file)
@@ -35,7 +35,7 @@ package net.systemeD.halcyon.connection {
         }
 
                public function isArea():Boolean {
-                       return nodes[0]==nodes[nodes.length-1] && nodes.length>2;
+                       return (nodes[0].id==nodes[nodes.length-1].id  && nodes.length>2);
                }
     }