Edit layer

Note: All Layers are public, you can add your private maps to them, they won't be listed
but they could be seen on the final map image.
<%= error_messages_for :layer %> <%- if (current_user = @layer.user || admin_authorized?) -%>

— <%= link_to 'Delete this layer.', {:controller=>"layers", :action=>"delete", :id => @layer} %> —

<% end %> <%= render :partial => "form", :locals => {:page => "edit"} %>