Make ?{node,way,relation}=id GET argumens work for the shortlink as
well as the permalink.
This commit is contained in:
parent
05bc2b70ed
commit
d63f13c18d
1 changed files with 5 additions and 0 deletions
|
@ -94,6 +94,11 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat, obj_type,
|
||||||
var code = makeShortCode(lat, lon, zoom);
|
var code = makeShortCode(lat, lon, zoom);
|
||||||
var prefix = shortlinkPrefix();
|
var prefix = shortlinkPrefix();
|
||||||
|
|
||||||
|
// Add ?{node,way,relation}=id to the arguments
|
||||||
|
if (obj_type && obj_id) {
|
||||||
|
args[obj_type] = obj_id;
|
||||||
|
}
|
||||||
|
|
||||||
// little hack. may the gods of hardcoding please forgive me, or
|
// little hack. may the gods of hardcoding please forgive me, or
|
||||||
// show me the Right way to do it.
|
// show me the Right way to do it.
|
||||||
if (layers && (layers != "B000FTF")) {
|
if (layers && (layers != "B000FTF")) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue