X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/0cb97bd7d96030c07d9716c3d26d39bcd4f712ff..3f30bc53f543e13221ba0b7c52284865f9593107:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 482ed85b8..cadfc718f 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -21,17 +21,15 @@
- - - - - - - -
http://creativecommons.org/licenses/by-sa/2.0/http://openstreetmap.org/
-Licensed under the Creative Commons Attribution-Share Alike 2.0 license -by the OpenStreetMap project and its contributors. -
+ + + + + + + + +
http://creativecommons.org/licenses/by-sa/2.0/http://openstreetmap.org/
Licensed under the Creative Commons Attribution-Share Alike 2.0 license by the OpenStreetMap project and its contributors.
<% if params['mlon'] and params['mlat'] %> @@ -94,9 +92,11 @@ by the OpenStreetMap project and its contributors. function mapInit(){ map = createMap("map"); + <% unless OSM_STATUS == :api_offline or OSM_STATUS == :database_offline %> map.dataLayer = new OpenLayers.Layer("Data", { "visibility": false }); map.dataLayer.events.register("visibilitychanged", map.dataLayer, toggleData); map.addLayer(map.dataLayer); + <% end %> <% if bbox %> var bbox = new OpenLayers.Bounds(<%= minlon %>, <%= minlat %>, <%= maxlon %>, <%= maxlat %>);