X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fd6f00b069af5a7b87227ea4c3401dc461d7311a..72b05157ae4d59177cd2fb667c42328b203374f1:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 54f281727..b8fcf579e 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -171,8 +171,8 @@ end var layers = getMapLayers(); var extents = getMapExtent(); - updatelinks(lonlat.lon, lonlat.lat, zoom, layers, extents); - + updatelinks(lonlat.lon, lonlat.lat, zoom, layers, extents.left, extents.bottom, extents.right, extents.top); + document.cookie = "_osm_location=" + lonlat.lon + "|" + lonlat.lat + "|" + zoom + "|" + layers; }