<% content_for :head do %> <%= javascript_include_tag "prototype" %> <%= javascript_include_tag "openlayers/OpenLayers-dev" %> <%= javascript_tag "window._token = '#{form_authenticity_token}'" %> <%= javascript_include_tag "align" %> <% end %>

Align another map to this one.

1. The selected map (map <%=@map.id%>) shown on the left is the reference map.
2. You align another map to this, by loading them onto the right.
3. You choose the type of alignment.
4. Once aligned, the page will redirect to the map that you aligned to the original one.

This alignment tool gives a quick and possibly inaccurate way to align maps next to each other.
An aligned map will get a copy of the reference maps control points and be shifted to the north, south, east, or west, or if no alignment is chosen, then it will get an unaltered copy.
Add layer
Enter in number of map you want aligned, to load:

hide
Align Map <% form_for(:maps, :html => {:id => 'align_form', :onsubmit =>'return checkSubmit();' }, :url => {:controller => 'maps', :action => 'warp_aligned' }) do | f | %> The map to be aligned is to the of the original map.
If the map to be aligned has already some control points, would you like these overwritten?  

Type of align:



<%= f.submit "align map!" %> <% end %>