               }
             )
         nodesLayer.addFeatures(features)
-        map.zoomToExtent(nodesLayer.getDataExtent())
 
   retrieveDirections = () ->
     destination = $("#destination").val()

      }
    )
    directionsLayer.addFeatures([sourceFeature, targetFeature])
    map.zoomToExtent(directionsLayer.getDataExtent())

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

    $("#directions").html("<ol><li>" + directions.join("</li><li>") + "</li></ol>")

  drawDirections = (directions) ->
    directionsLayer.removeAllFeatures()
    sourceNode = directions[0].nodes[0]
    sourcePoint = new OpenLayers.Geometry.Point(sourceNode.longitude, sourceNode.latitude)
      .transform(EPSG4326Projection, map.getProjectionObject())
