SpeciesFileGroup/taxonworks

View on GitHub
app/views/tasks/gis/match_georeference/_draw_georeferences_form.html.erb

Summary

Maintainability
Test Coverage
<div id="_draw_gr_form" name="_draw_gr_form" hidden
     data-feature-collection='<%= Gis::GeoJSON.feature_collection([]).to_json %>'
     data-map-center='POINT (0.0 0.0 0.0)'
     data-map-canvas="draw_gr_canvas"
     data-map-drawing-modes="circle, polygon"
>
  <%= form_tag(drawn_georeferences_path, method: 'get', remote: true) do %>
      <table>
        <tr>
          <td>
            <div id="draw_gr_canvas" style="width:512px; height: 256px;"></div>
          </td>
        </tr>
      </table>
      <%= hidden_field_tag('gr_geographic_item_attributes_shape') %>
      <%= submit_tag('Find', id: 'gr_commit') %>
  <% end %>
</div>