X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5898b494df440ba9659ac8fbe2e150285a9a85a6..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);