X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5449cf4adcc1fad4b9f43426e6d3e4a8f65e6fbb..5c783cd0eece7c5d4607b89f1cff313d8d867a04:/app/views/site/index.rhtml?ds=inline diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 66f69960b..54f281727 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -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 %>);