projects
/
potlatch2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4f7198
)
Call moveFunction at startup to report the initial position
author
Tom Hughes
<tom@compton.nu>
Tue, 27 Nov 2012 19:20:03 +0000
(19:20 +0000)
committer
Tom Hughes
<tom@compton.nu>
Tue, 27 Nov 2012 19:20:03 +0000
(19:20 +0000)
net/systemeD/potlatch2/EditController.as
patch
|
blob
|
history
diff --git
a/net/systemeD/potlatch2/EditController.as
b/net/systemeD/potlatch2/EditController.as
index 76af73eca478606b01e21eb447e8868a2ef9e9de..fea0f1cc4c73ccbcfa2daf409876602aa693c981 100644
(file)
--- a/
net/systemeD/potlatch2/EditController.as
+++ b/
net/systemeD/potlatch2/EditController.as
@@
-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);
}