From: Tom Hughes Date: Wed, 21 Jul 2010 13:49:09 +0000 (+0100) Subject: Fix short links to drop the layers param for the default layer X-Git-Tag: live~6822^2~10 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/d87ea6863ad8d525d9320e6d1d13350f8263cf52 Fix short links to drop the layers param for the default layer --- diff --git a/public/javascripts/site.js b/public/javascripts/site.js index 0a5aae4ad..0e2c5aeb7 100644 --- a/public/javascripts/site.js +++ b/public/javascripts/site.js @@ -107,10 +107,8 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj args[objtype] = objid; } - // This is a hack to omit the default mapnik layer (B000FTF) from - // the shortlink. B000FTFT is then the "Object" layer which we get - // on /?{node,way,relation}=id - if (layers && (layers != "B000FTF") && (layers != "B000FTFT")) { + // This is a hack to omit the default mapnik layer from the shortlink. + if (layers && layers != "M") { args["layers"] = layers; } else {