 LeafletMapComponent = Ember.Component.extend
   classNames: ['leaflet-wrapper']
   map: ''
-  currentLocation: []
+  currentLocation: [-37.82397, 144.991078]
 
   getCurrentLocation: ->
     return if (!navigator.geolocation)

    @drawMapLater()

  drawMapLater: ->
    Em.run.later this, (->
      @drawMap()
    ), 1000

  drawMap: ->
    current = @getWithDefault 'currentLocation', [-37.814107, 144.96328]
    @set('map', L.map('map').setView(current, 13))
    map = @get('map')
    content = @get('content')


      @set 'currentLocation', [position.coords.latitude, position.coords.longitude]

  contentDidChange: Em.observer(->
    @get('map').remove()
    @drawMapLater()
  , 'content.@each')

  locationDidChange: (->
    @get('map').setView(@get('currentLocation'), 13)
  ).observes 'currentLocation'

  didInsertElement: ->
    @_super()
