Fix short links to drop the layers param for the default layer

This commit is contained in:
Tom Hughes 2010-07-21 14:49:09 +01:00
parent ad116b2431
commit d87ea6863a

View file

@ -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 {