Make sure we always put a valid URL on the edit tab, and allow switching
to the editor to work from z11 instead of z14 as that is what Potlatch supports. Also fix default zooms for Potlatch when no position is given.
This commit is contained in:
parent
f7f2b7482d
commit
7b9272ffa6
2 changed files with 5 additions and 5 deletions
|
@ -21,12 +21,12 @@ function updatelinks(lon,lat,zoom) {
|
|||
|
||||
node = document.getElementById("editanchor");
|
||||
if (node) {
|
||||
if ( zoom >= 14) {
|
||||
var args = getArgs(node.href);
|
||||
if (zoom >= 11) {
|
||||
var args = new Object();
|
||||
args.lat = lat;
|
||||
args.lon = lon;
|
||||
args.zoom = zoom;
|
||||
node.href = setArgs(node.href, args);
|
||||
node.href = setArgs("/edit.html", args);
|
||||
node.style.fontStyle = 'normal';
|
||||
} else {
|
||||
node.href = 'javascript:alert("zoom in to edit map");';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue