# HG changeset patch # User Tero Marttila # Date 1262789133 -7200 # Node ID 0abb7289d4b89ed4a4ae61a943d76d5e9aefd302 # Parent a6fc2c58e25b666066ef0d572181d726ddf3a272 fix intial zoom to be unscaled diff -r a6fc2c58e25b -r 0abb7289d4b8 static/tiles2.js --- 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