changeset 38 | 0abb7289d4b8 |
parent 34 | a387bc77ad52 |
child 39 | eeedb6c2f7c0 |
--- a/static/tiles2.js Wed Jan 06 16:41:26 2010 +0200 +++ b/static/tiles2.js Wed Jan 06 16:45:33 2010 +0200 @@ -87,7 +87,11 @@ if (pt.length) z = parseInt(pt.shift()); // initial view - this.zoom_center_to(cx, cy, z); + this.zoom_scaled( + cx - this.center_offset_x, + cy - this.center_offset_y, + z + ); } else { // this sets the scroll offsets, zoom level, and loads the tiles