Only the view and edit tabs really need updating when the map moves.
This commit is contained in:
parent
6af2598ad6
commit
8dfecbfbb2
1 changed files with 3 additions and 12 deletions
|
@ -1,17 +1,8 @@
|
|||
function updatelinks(lon,lat,zoom,layers) {
|
||||
var links = new Object();
|
||||
links['viewanchor'] = '/index.html';
|
||||
//links['editanchor'] = 'edit.html';
|
||||
links['uploadanchor'] = '/traces';
|
||||
links['loginanchor'] = '/login.html';
|
||||
links['logoutanchor'] = '/logout.html';
|
||||
links['registeranchor'] = '/create-account.html';
|
||||
|
||||
var node;
|
||||
var anchor;
|
||||
for (anchor in links) {
|
||||
node = document.getElementById(anchor);
|
||||
if (! node) { continue; }
|
||||
|
||||
node = document.getElementById("viewanchor");
|
||||
if (node) {
|
||||
var args = getArgs(node.href);
|
||||
args["lat"] = lat;
|
||||
args["lon"] = lon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue