<noscript>
<div id="noscript">
- <p>You are either using a browser that doesn't support javascript, or you have disabled javascript.</p>
- <p>OpenStreetMap uses javascript for its slippy map.</p>
- <p>You may want to try the <a href="http://tah.openstreetmap.org/Browse/">Tiles@Home static tile browser</a> if you are unable to enable javascript.</p>
+ <p><%= t 'site.index.js_1' %></p>
+ <p><%= t 'site.index.js_2' %></p>
+ <p><%= t 'site.index.js_3' %></p>
</div>
</noscript>
<div id="map">
-<div id="permalink"><a href="/" id="permalinkanchor">Permalink</a></div>
+<div id="permalink"><a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a></div>
</div>
<div id="attribution">
<td align="right">http://openstreetmap.org/</td>
</tr>
<tr>
- <td colspan="2" align="center">Licensed under the Creative Commons Attribution-Share Alike 2.0 license by the OpenStreetMap project and its contributors.</td>
+ <td colspan="2" align="center"><%= t 'site.index.license' %></td>
</tr>
</table>
</div>
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 %>);
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;
}