<% content_for :head do %> <%= javascript_include_tag "prototype" %> <%= javascript_include_tag "openlayers/OpenLayers-dev" %> <%= javascript_include_tag "progressbar/js/bramus/jsProgressBarHandler" %> <%= javascript_include_tag "unwarped" %> <% end -%> <% if @mapstatus != "unloaded" %> <% @onload="init();" %> <% end %> <% if @mapstatus != "unloaded" %> <%= @title %>
<% else %>
Loading map... <%= image_tag 'spinner.gif' %>
20% requesting

A low resolution preview is shown below.

<%=image_tag @map.upload.url %> <%= periodically_call_remote :url => {:action=>'status', :id => @map.id}, :update => 'map_status', :frequency => 4, :condition => "!($('map_status').innerHTML == 'available') || !($('map_status').innerHTML == 'warped')", :complete => "yayornay();", :success => "updatebar(request.responseText);", :variable => 'statusPoll' %> <%end%>