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:   var polyline; //The line
    var marker_data = new Array();
  
    function add_marker(latitude, longitude){
      var next_pos = next_position();
      var index = next_index();
  
negative.code:       data = row.split(",");
        add_marker(data[1], data[0]);
      });
     
      rebound_map();
    }
  
    // Zoon and fit the map to the active markers.
    function rebound_map(){
      var map_bounds = new google.maps.LatLngBounds();
      $.each(marker_data, function(i, marker){
        if(marker.active){
          map_bounds.extend(marker.marker.getPosition());
        }
      });
      map.fitBounds(map_bounds);
    }
  <% end %>
  <%= form_for(@route, :html => { :class => 'cmxform'}) do |f| %>
  