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