         utils.detailMap = new Map(@mapElement)
 
     initLayers: ->
-      unless(utils.routeLayer)
-        utils.routeLayer = new OpenLayers.Layer.Vector("Route")
-        @addLayer(utils.routeLayer)
+      unless(@routeLayer)
+        @routeLayer = new OpenLayers.Layer.Vector("Route")
+        @addLayer(@routeLayer)
       unless(utils.poiLayer)
         utils.poiLayer = new OpenLayers.Layer.Vector("POIs", {styleMap: utils.poiStyleMap})
         selectControl = new OpenLayers.Control.SelectFeature(



    showRoute: (routeFeature) ->
      utils.routeLayer.addFeatures([routeFeature])


    clearRoute: ->
      utils.routeLayer.removeAllFeatures()


    addPOIFeatureToMap: (poiFeature) ->

      "click #right": "moveRight"
      "orientationchange resize pageshow": "updateMap"
    mapElement: "map"
    routeLayer: null
    poiLayer: null

    updateMap: (width, height) ->
      @setSize(width, height)
