Mercurial > hg > batmud > gmap2
changeset 235:0e6fa3f5684d gmap2
Adjust generated link coordinates so that they match what we desire.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 16 Mar 2014 22:28:23 +0200 |
parents | 8a14983244b0 |
children | d0789eab0c47 |
files | map.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/map.js Sat Mar 15 19:35:03 2014 +0200 +++ b/map.js Sun Mar 16 22:28:23 2014 +0200 @@ -154,7 +154,7 @@ if (pmap) { var p = pmapLatLngToMapCoords(pmap.getCenter(), 6); - var tx = Math.round(p.x) + pmapWorld.ox; + var tx = Math.round(p.x) + pmapWorld.ox - 1; var ty = Math.round(p.y) + pmapWorld.oy; str = "http://tnsp.org/gmap2/?x="+ tx +"&y="+ ty +"&zoom="+ pmap.getZoom();