Remove layers argument from the shortlink if we change to mapnik from
a non-mapnik layer.
This commit is contained in:
parent
c5349c360f
commit
7a7c567436
1 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue