Skip to content

Commit

Permalink
Fix short links to drop the layers param for the default layer
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Jul 21, 2010
1 parent ad116b2 commit d87ea68
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions public/javascripts/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d87ea68

Please sign in to comment.