X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8b9cacd3c2fa236463819ffeb41980ec57d87faa..f07819d81a7437e58c6e64c2e76ba7e54fad9034:/app/views/site/index.html.erb diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 636e6929c..ddd66a861 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -125,7 +125,7 @@ end function mapInit(){ map = createMap("map"); - <% unless OSM_STATUS == :api_offline or OSM_STATUS == :database_offline %> + <% unless STATUS == :api_offline or STATUS == :database_offline %> map.dataLayer = new OpenLayers.Layer("<%= I18n.t 'browse.start_rjs.data_layer_name' %>", { "visibility": false }); map.dataLayer.events.register("visibilitychanged", map.dataLayer, toggleData); map.addLayer(map.dataLayer);