     Math.floor(step.path.length / 2)
   
   #this uses google spherical geometry functions to calculate the heading if our arrow.
-  getBearingOfArrow: (pos, towards) ->
+  getAngleOfArrow: (pos, towards) ->
     dir = google.maps.geometry.spherical.computeHeading(pos, towards).toFixed(1);
     #round it to a multiple of 3 and correct unusable numbers
     dir = Math.round(dir/3) * 3;

        warnings.innerHTML = "" + response.routes[0].warnings + ""
        self.displayArrow(response.routes[0].legs)
        self.directionsDisplay.setDirections(response)

    )


class window.aurora.MapLinkView extends Backbone.View
  @viewLinks = []
  @viewArrows = []
  
  initialize: (link, broker) -> 
    #Instantiate a directions service.
    renderOptions = {
