           path:App.google.SymbolPath.CIRCLE
           scale: 4
       that = @
-      App.google.event.addListener @marker, 'click', ->
+      @listener = App.google.event.addListener @marker, 'click', ->
         that.infoWindow.open map, that.marker
-
     latlng: ->
       new App.google.LatLng @model.getValue('lat'), @model.getValue('lng')
 
   class ListView extends Marionette.CollectionView
     childView: ListItemView
     initialize:->
-      pos = new App.google.LatLng App.position.coords.latitude, App.position.coords.longitude
       @$el.css
         height: '100%'
         width: '100%'

        scaleControlOptions:
          position: App.google.ControlPosition.RIGHT_BOTTOM
        streetViewControl: false

      marker = new App.google.Marker
        map: map,
        position: pos
      map.setCenter(pos)

  return ListView

], (App, Marionette, Template) ->

  map = ''
  class ListItemView extends Marionette.ItemView
    template: Template
    modelEvents:
      "change": "updateMarker"
      "destroy": "destroyMarker"
    render: ->
      @createMarker()
    destroyMarker:->
      @marker.setMap null
      App.google.event.removeListener @listener
    updateMarker:->
      @destroyMarker()
      @createMarker()
    createMarker:->
      @category = App.Categories.findWhere _id: @model.getValue 'category'
      color = @category.getValue("color")
      @infoWindow = new App.google.InfoWindow content: @template @model.toJSON()
      @marker = new App.google.Marker
