Merge pull request #165 from jonatkins/permalinkfix

permalinks give a map zoomed in one level further
This commit is contained in:
Stefan Breunig
2013-02-15 00:14:48 -08:00
2 changed files with 2 additions and 2 deletions

View File

@ -78,6 +78,7 @@ Please do!
[epf](https://github.com/epf),
[integ3r](https://github.com/integ3r),
[JasonMillward](https://github.com/JasonMillward),
[jonatkins](https://github.com/jonatkins),
[mledoze](https://github.com/mledoze),
[OshiHidra](https://github.com/OshiHidra),
[phoenixsong6](https://github.com/phoenixsong6),
@ -89,7 +90,6 @@ Please do!
[Xelio](https://github.com/Xelio),
[ZauberNerd](https://github.com/ZauberNerd)
Hacking
-------

View File

@ -207,7 +207,7 @@ window.setPermaLink = function(elm) {
var c = map.getCenter();
var lat = Math.round(c.lat*1E6);
var lng = Math.round(c.lng*1E6);
var qry = 'latE6='+lat+'&lngE6='+lng+'&z=' + map.getZoom();
var qry = 'latE6='+lat+'&lngE6='+lng+'&z=' + (map.getZoom()-1);
$(elm).attr('href', 'http://www.ingress.com/intel?' + qry);
}