Change the feature commited in [16174] to use the main map view
instead of being located at /map.
This commit is contained in:
parent
8bc8e537b2
commit
34b147266c
12 changed files with 84 additions and 198 deletions
|
@ -2,7 +2,7 @@
|
|||
* Called as the user scrolls/zooms around to aniplate hrefs of the
|
||||
* view tab and various other links
|
||||
*/
|
||||
function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat) {
|
||||
function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat, obj_type, obj_id) {
|
||||
var decimals = Math.pow(10, Math.floor(zoom/3));
|
||||
var node;
|
||||
|
||||
|
@ -18,6 +18,9 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat) {
|
|||
if (layers) {
|
||||
args["layers"] = layers;
|
||||
}
|
||||
if (obj_type && obj_id) {
|
||||
args[obj_type] = obj_id;
|
||||
}
|
||||
node.href = setArgs(node.href, args);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue