aboutsummaryrefslogtreecommitdiffstats
path: root/web/js.js
diff options
context:
space:
mode:
authormatthew <matthew>2008-04-14 17:10:51 +0000
committermatthew <matthew>2008-04-14 17:10:51 +0000
commit6c716d81c18a3f2dedb921dd5f874bc8fcaaa9cf (patch)
treed761f85ca4c21a96feb9064ea60d4f7513e2e760 /web/js.js
parentc965cbaf378f4ba55f3141ada8403e95a4da37af (diff)
Fix obscure bug with repeated positioning of pin without panning/scrolling
leading to reaching edge of loaded tiles.
Diffstat (limited to 'web/js.js')
-rw-r--r--web/js.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/js.js b/web/js.js
index e59b0bb1a..25a9b6770 100644
--- a/web/js.js
+++ b/web/js.js
@@ -45,7 +45,7 @@ YAHOO.util.Event.onContentReady('map', function() {
if (document.getElementById('mapForm') && (/safari/.test(ua) || /Konqueror/.test(ua))) return;
new YAHOO.util.DDMap('map');
- update_tiles(0, 0, true);
+ update_tiles(start_x, start_y, true);
});
YAHOO.util.Event.onContentReady('mapForm', function() {
@@ -222,6 +222,8 @@ function pan(x, y) {
}
}
+var drag_x = 0;
+var drag_y = 0;
function update_tiles(dx, dy, force) {
dx = getInt(dx); dy = getInt(dy);
if (!dx && !dy && !force) return;