author | Tero Marttila <terom@fixme.fi> |
Wed, 06 Jan 2010 16:45:33 +0200 | |
changeset 38 | 0abb7289d4b8 |
parent 37 | a6fc2c58e25b |
child 39 | eeedb6c2f7c0 |
static/tiles2.js | file | annotate | diff | comparison | revisions |
--- 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