<% content_for :head do %> <%= javascript_include_tag "prototype" %> <%= javascript_include_tag "openlayers/OpenLayers-dev" %> <%= javascript_tag "window._token = '#{form_authenticity_token}'" %> <%= javascript_include_tag "layers" %> <%= javascript_include_tag "mapmerc4" %> <% end %> <% @onload="init();popul();" %>
Add layer
Double-click on both maps, then click . Do this for at least three points.
Control Points
<% form_for(:gcp, :html => {:id => 'gcp_form'} , :url => {:controller => 'map', :action=> 'rectify', :id => @map }) do |f| %>
<%= render(:partial => "gcp/gcp", :collection => @gcps) %>
PointImage XImage YLonLatError(<%=sprintf("%.2f",@map.error) %>)
Advanced options

<%= submit_to_remote 'submit', 'Warp Image! →', :url => {:controller => 'maps', :action=> 'rectify', :id =>@map }, :before => "Element.show('spinner');gcp_notice('Rectifying.....');", :failure => "gcp_notice('Sorry, there appears to be an error sending the request to the server, try again?...');", :complete => "Element.hide('spinner');", :html => { :class => "warp_button"} %>

<% if @map.mask_status.nil? || @map.mask_status == :unmasked -%> This map either is not currently masked. Do you want to <%= link_to "add or edit a mask now", clip_map_path %>?
<% end %> Apply <%= link_to "clipping mask", clip_map_path %> when rectifying?
<% end %>