   #Arrow Positoning calculations involve the following functions:
   #displayArrow, getArrowStep, getArrowPositionIndex, and getAngleOfArrow
   #setUprrow calcuates the position and angle of the arrow to display along the route
-  setUpArrow: () ->
+  drawArrow: () ->
     #get the step along the route is about halfway
     arrow_step = this.getArrowStep(this.leg)
     #get the index of the latitude/longitude that is about halfway through the step

  #this method reads the path of points contained in the leg
  #and converts it into a polyline object to be drawn on the map
  #The Polyline map attribute will be null until render is called
  setUpLink: (leg) ->
    sm_path = []
    for step in this.leg.steps
      for pt in step.path

  
  initialize: (leg, broker) ->
    this.leg = leg
    this.drawLink leg
    this.drawArrow leg
    this.broker = broker
    MapLinkView.view_links.push this
    this.broker.on('map:init', this.render(), this)
