changeset 145:36d253c09da3 gmap2

Oops, off-by-one in zoom value.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 09 Mar 2014 16:25:23 +0200
parents e92a0df189b6
children 05d719a763ca
files overlay.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/overlay.php	Sun Mar 09 16:21:59 2014 +0200
+++ b/overlay.php	Sun Mar 09 16:25:23 2014 +0200
@@ -17,7 +17,7 @@
 
 
 $vzoom = isset($_GET["zoom"]) ? intval($_GET["zoom"]) : 0;
-$zoom = pow(2, $vzoom - 5);
+$zoom = pow(2, $vzoom - 6);
 $xc = isset($_GET["x"]) ? intval($_GET["x"]) : 0;
 $yc = isset($_GET["y"]) ? intval($_GET["y"]) : 0;