         retrieveWays()
   })
   selectFeatureControl = new OpenLayers.Control.SelectFeature([nodesLayer, waysLayer]);
+  source = null
 
   $(() ->
     map = new OpenLayers.Map "map"

require(["jquery", "styles", "openlayers/OpenLayers", "underscore"], ($, styles) ->

  directionsLayer = new OpenLayers.Layer.Vector(
    "Directions"
    {

    )
    directionsLayer.addFeatures([sourceFeature, targetFeature])

  AntScout.updatePath = (path) ->
    console.debug("Updating path")
    drawDirections

  enable = (elementId) ->
    $("##{ elementId }").prop("disabled", false)

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

  retrieveNode = (id) ->
    $.get "node/#{ id }",
