Draw multiple strokes, label POIs, and much much more fun.
[potlatch2.git] / net / systemeD / halcyon / connection / Way.as
index 02a3cbf169b5e1172b3051db157b7a903486ffb2..f26d5b6419acce472440285b7d6838324fde8551 100644 (file)
@@ -33,6 +33,10 @@ package net.systemeD.halcyon.connection {
             return "Way("+id+"@"+version+"): "+getTagList()+
                      " "+nodes.map(function(item:Node,index:int, arr:Array):String {return item.id.toString();}).join(",");
         }
             return "Way("+id+"@"+version+"): "+getTagList()+
                      " "+nodes.map(function(item:Node,index:int, arr:Array):String {return item.id.toString();}).join(",");
         }
+
+               public function isArea():Boolean {
+                       return nodes[0]==nodes[nodes.length-1] && nodes.length>2;
+               }
     }
 
 }
     }
 
 }