Mercurial > hg > batmud > gmap2
changeset 138:fdcfafb77fea gmap2
Fix coordinates display.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 09 Mar 2014 15:19:54 +0200 |
parents | c7a141d5ce39 |
children | 40fa631ce75b |
files | map.js |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/map.js Sun Mar 09 14:58:19 2014 +0200 +++ b/map.js Sun Mar 09 15:19:54 2014 +0200 @@ -40,8 +40,8 @@ google.maps.Event.addListener(map, "mousemove", function(point) { var p = proj.fromLatLngToPixel(point, 7); - tx = Math.round((p.x - 16383) / 2) - 1; - ty = Math.round((p.y - 16383) / 2) - 1; + tx = Math.round((p.x - 16383) / 2); + ty = Math.round((p.y - 16383) / 2); xx = tx; yy = ty;