% content_for :head do %> <%= javascript_include_tag "prototype" %> <%= javascript_include_tag "openlayers/OpenLayers-dev" %> <%= javascript_include_tag "clip" %> <% end -%> <% @onload = "init();" -%> <%= @title %>
1. Draw polygons around the area you wish to mask.
2. Then to apply the mask to the map, click "Mask Map!"
<% form_remote_tag(:update=>"maskresult", :complete => "Element.hide('spinner')", :before => "deselect();Element.show('spinner');serialize_features();", :html => {:id => 'clip_form2'} , :url => {:controller => 'maps', :action=> 'save_mask_and_warp', :id => @map.id }) do -%> <%= hidden_field_tag "output" %>