changeset 230:c5a06121ed95 gmap2

Adjust coordinates.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 15 Mar 2014 16:01:11 +0200
parents ccd79b97dc52
children c974783065e6
files map.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/map.js	Sat Mar 15 15:48:40 2014 +0200
+++ b/map.js	Sat Mar 15 16:01:11 2014 +0200
@@ -135,8 +135,8 @@
     }
   }
 
-  tx += pmapWorld.ox;
-  ty += pmapWorld.oy;
+  tx += pmapWorld.ox - 1;
+  ty += pmapWorld.oy - 1;
 
   var str = "Cursor: "+
     "Global X: <span class=\"coord\">"+ tx +"</span>, Y: <span class=\"coord\">"+ ty +"</span>, "+