Merge pull request #93 from tomhughes/master
authorRichard Fairhurst <richard@systemeD.net>
Mon, 3 Dec 2012 14:39:16 +0000 (06:39 -0800)
committerRichard Fairhurst <richard@systemeD.net>
Mon, 3 Dec 2012 14:39:16 +0000 (06:39 -0800)
Fix trac #1701

net/systemeD/potlatch2/EditController.as

index 76af73eca478606b01e21eb447e8868a2ef9e9de..fea0f1cc4c73ccbcfa2daf409876602aa693c981 100644 (file)
@@ -73,6 +73,12 @@ package net.systemeD.potlatch2 {
             map.stage.addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
 
             if (this.moveFunction) {
+                var lon:Number = ( map.edge_r + map.edge_l ) / 2;
+                var lat:Number = ( map.edge_b + map.edge_t ) / 2;
+
+                ExternalInterface.call(this.moveFunction, lon, lat, map.scale,
+                                       map.edge_l, map.edge_b, map.edge_r, map.edge_t);
+
                 map.addEventListener(MapEvent.MOVE, moveHandler);
             }