       }
     )
     directionsLayer.addFeatures([sourceFeature, targetFeature])
-    map.zoomToExtent(directionsLayer.getDataExtent())
 
   enable = (elementId) ->
     $("##{ elementId }").prop("disabled", false)

    $.get "ways",
      (ways) ->
        addWaysToLayer(ways, waysLayer)
        map.zoomToExtent(waysLayer.getDataExtent())

  setNode = (input) ->
    id = nodesLayer.selectedFeatures.length > 0 and nodesLayer.selectedFeatures[0].attributes.node.id

              }
            )
        nodesLayer.addFeatures(features)

  retrieveDirections = () ->
    destination = $("#destination").val()
