Separate Halcyon (rendering) into standalone target without Flex dependency; JavaScri...
[potlatch2.git] / net / systemeD / halcyon / connection / Way.as
index e3e6333ccf5683632f8608aa5df746e46755fe55..2886b5bda5d41b3f2f5fea1ea45db37a3348ee1e 100644 (file)
@@ -2,6 +2,7 @@ package net.systemeD.halcyon.connection {
 
     public class Way extends Entity {
         private var nodes:Array;
+               public static var entity_type:String = 'way';
 
         public function Way(id:Number, version:uint, tags:Object, nodes:Array) {
             super(id, version, tags);
@@ -37,6 +38,10 @@ package net.systemeD.halcyon.connection {
                public function isArea():Boolean {
                        return (nodes[0].id==nodes[nodes.length-1].id  && nodes.length>2);
                }
+
+               public override function getType():String {
+                       return 'way';
+               }
     }
 
 }