Fix short links to drop the layers param for the default layer
This commit is contained in:
parent
ad116b2431
commit
d87ea6863a
1 changed files with 2 additions and 4 deletions
|
@ -107,10 +107,8 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj
|
||||||
args[objtype] = objid;
|
args[objtype] = objid;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is a hack to omit the default mapnik layer (B000FTF) from
|
// This is a hack to omit the default mapnik layer from the shortlink.
|
||||||
// the shortlink. B000FTFT is then the "Object" layer which we get
|
if (layers && layers != "M") {
|
||||||
// on /?{node,way,relation}=id
|
|
||||||
if (layers && (layers != "B000FTF") && (layers != "B000FTFT")) {
|
|
||||||
args["layers"] = layers;
|
args["layers"] = layers;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue