X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/160429e62d88810ec49ccc9c504edee675dca080..6fb857020092c909043c4521b91a040f3bb16937:/app/views/site/index.html.erb diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 9098c1a88..fc1e1ec5c 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -134,7 +134,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);