compile fixes
authorAndy Allan <gravitystorm@gmail.com>
Tue, 16 Nov 2010 15:01:04 +0000 (15:01 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Tue, 16 Nov 2010 15:01:04 +0000 (15:01 +0000)
net/systemeD/halcyon/VectorLayer.as
net/systemeD/halcyon/connection/Marker.as
net/systemeD/potlatch2/utils/BugLoader.as

index 9fcacfe..51ea006 100644 (file)
@@ -78,9 +78,9 @@ package net.systemeD.halcyon {
             return relation;
                }
 
-        public function createMarker(tags:Object,lat:Number,lon:Number:Marker {
+        public function createMarker(tags:Object,lat:Number,lon:Number):Marker {
             var marker:Marker = new Marker(negativeID, 0, tags, true, lat, lon);
-            markers[negativeID]=node; negativeID--;
+            markers[negativeID]=marker; negativeID--;
             return marker;
         }
 
index 673cba7..cf57dfd 100644 (file)
@@ -11,7 +11,7 @@ package net.systemeD.halcyon.connection {
         private var _lon:Number;
 
         public function Marker(id:Number, version:uint, tags:Object, loaded:Boolean, lat:Number, lon:Number) {
-            super(id, version, tags, loaded, uid, timestamp);
+            super(id, version, tags, loaded, 0, null);
             this._lat = lat;
             this._latproj = lat2latp(lat);
             this._lon = lon;
@@ -43,4 +43,6 @@ package net.systemeD.halcyon.connection {
 
         public override function getType():String {
             return 'node';
-        }
\ No newline at end of file
+        }
+    }
+}
\ No newline at end of file
index 267587f..6c486fd 100644 (file)
@@ -2,7 +2,7 @@ package net.systemeD.potlatch2.utils {
 
     import net.systemeD.halcyon.Map;
     import net.systemeD.halcyon.VectorLayer;
-    import net.systemeD.halcyon.connection.Node;
+    import net.systemeD.halcyon.connection.Marker;
     import flash.net.*;
     import flash.events.*;
     import com.adobe.serialization.json.JSON;
@@ -40,8 +40,8 @@ package net.systemeD.potlatch2.utils {
               var lon:Number = feature.geometry.coordinates[0];
               var lat:Number = feature.geometry.coordinates[1];
               trace(lat, lon);
-              var node:Node = layer.createMarker({"name":feature.properties.description,"bug_id":feature.id}, lat, lon);
-              layer.registerPOI(node);
+              var marker:Marker = layer.createMarker({"name":feature.properties.description,"bug_id":feature.id}, lat, lon);
+              //layer.registerPOI(node);
             }
             layer.paint.updateEntityUIs(layer.getObjectsByBbox(map.edge_l,map.edge_r,map.edge_t,map.edge_b), false, false);
             //var json:Array =