X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fdd5d2d7791f9138c339c9f18bcaa8946bd18d0c..023e95f1bc6945dc1d20f3d228b126b12992bc0a:/app/views/site/index.rhtml 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 %>);