         ]
       }
 
-      @map.objects.add(new nokia.maps.map.StandardMarker @user_location, {text: ''})
+      @user_marker = new nokia.maps.map.StandardMarker @user_location, {text: ''}
+      @map.objects.add(@user_marker)
       @user_bounding_box = new nokia.maps.geo.BoundingBox(@user_location)
       zoom_to = =>
         @map.zoomTo(@user_bounding_box, true, 'default')

$ ->
  App = {
    set_credentials: ->
      nokia.Settings.set 'app_id', 'dAeplRpqXA3pPri5MWDE'
      nokia.Settings.set 'app_code', '0taRg556WF-uaMDhXddFtw'

    find_nearest: ->
      $.getJSON '/cycle-racks.geojson', (data) =>
        gj = L.geoJson(data)
        nearest = leafletKnn(gj).nearest(L.latLng(@user_location[0], @user_location[1]), 1)[0]

        router = new nokia.maps.routing.Manager()
        points = new nokia.maps.routing.WaypointParameterList()
