anchor.diff:      
       marker_data[marker.get('data_id')].active = false;
     }
  - 
  +  
  +  // Import data from the import box and replace the existing route with it.
     function import_data(){
       $.each(marker_data, function(index, marker){
         remove_marker(marker.marker);
  
positive.code:       data = row.split(",");
        add_marker(data[1], data[0]);
      });
    }
  <% end %>
  <%= form_for(@route, :html => { :class => 'cmxform'}) do |f| %>
  
negative.code:     add_edit_marker_to_map(coord, index);
    }
    
    // Given a marker, remove it from the map, line
    // and mark it for deletion in the database.
    function remove_marker(marker){
      //Remove it from the line and map.
      delete_from_map(marker);
  