       nodePath.setRadius(styles.selectedNode.radius)
       nodePath.setStyle(styles.selectedNode)
       selectedNode = nodePath
-      $("#nodeId").html("<a href=\"http://www.openstreetmap.org/browse/node/#{ selectedNode.node.id }\">#{ selectedNode.node.id }</a>")
-      $("#nodeLongitude").html(selectedNode.node.longitude)
-      $("#nodeLatitude").html(selectedNode.node.latitude)
+      displayNodeData(selectedNode.node)
       retrieveNode(selectedNode.node.id)
 
   selectWay = (way, style, selectedStyle) ->

  source = null
  sourceMarker = null

  deselectNode = () ->
    if selectedNode?
      incomingWaysLayer.clearLayers()
      outgoingWaysLayer.clearLayers()
      selectedNode.setRadius(styles.node.radius)

    $("##{ elementId }").prop("disabled", true)

  displayWayData = (way) ->
    $("#wayId").html(way.id)
    $("#wayLength").val(way.length)
    $("#wayMaxSpeed").val(way.maxSpeed)
    $("#wayTripTime").val(way.tripTime)
