# HG changeset patch # User Matti Hamalainen # Date 1395001703 -7200 # Node ID 0e6fa3f5684d2bb5f03e9cb18212c02d2d8b9ad5 # Parent 8a14983244b0c905c4cd4c45f93fa429b4bcef4b Adjust generated link coordinates so that they match what we desire. diff -r 8a14983244b0 -r 0e6fa3f5684d map.js --- 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();