Remove layers argument from the shortlink if we change to mapnik from

a non-mapnik layer.
This commit is contained in:
Tom Hughes 2009-08-13 14:02:49 +00:00
parent c5349c360f
commit 7a7c567436

View file

@ -108,6 +108,9 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,objtype,obj
if (layers && (layers != "B000FTF") && (layers != "B000FTFT")) {
args["layers"] = layers;
}
else {
delete args["layers"];
}
// Here we're assuming that all parameters but ?layers= and
// ?{node,way,relation}= can be safely omitted from the shortlink