       dir += 240
     if (dir > 117) 
       dir -= 120
-    dir+    dir
+  
+################# The following handles the show and hide of link layers including the arrow heads
+  @hideLinkOverlays: () ->
+    _.each(viewLinks, (i) -> i.setMap(null))
+    _.each(viewArrows, (i) -> i.setMap(null))
+  
+  @showLinkOverlays: () ->
+    _.each(viewLinks, (i) -> i.setMap(window.map))
+    _.each(viewArrows, (i) -> i.setMap(window.map))

    arrow_angle_to = arrow_step.path[lat_lng_index + 1]
    
    #calculate direction of arrow
    dir = this.getBearingOfArrow(arrow_lat_lng_pos,arrow_angle_to)
    self = this
    new google.maps.Marker({
      position: arrow_lat_lng_pos,
      icon: new google.maps.MarkerImage('http://maps.google.com/mapfiles/dir_'+dir+'.png',
                  new google.maps.Size(24,24),

            ),
      map: window.map
    });
    #add marker to static array of arrows for hiding/showing layers
    MapLinkView.viewArrows.push marker
    marker

  #this moves through the steps array of the route to determine which step is about 
  #halfway through the leg
