X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fdd5d2d7791f9138c339c9f18bcaa8946bd18d0c..90f6dac51ebaee0ac720540c25b79d5b865896e6:/app/views/site/index.rhtml?ds=sidebyside
diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml
index 66f69960b..53a4c9a07 100644
--- a/app/views/site/index.rhtml
+++ b/app/views/site/index.rhtml
@@ -10,14 +10,14 @@
@@ -27,7 +27,7 @@
http://openstreetmap.org/ |
- Licensed under the Creative Commons Attribution-Share Alike 2.0 license by the OpenStreetMap project and its contributors. |
+ <%= t 'site.index.license' %> |
@@ -111,7 +111,8 @@ end
setMapExtent(bbox);
<% if box %>
- box = addBoxToMap(bbox);
+ // IE requires Vector layers be initialised on page load, and not under deferred script conditions
+ Event.observe(window, 'load', function() {addBoxToMap(bbox)});
<% end %>
<% else %>
var centre = new OpenLayers.LonLat(<%= lon %>, <%= lat %>);
@@ -170,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;
}