       @map.fitBounds geocode.geometry.viewport
       @marker.setPosition geocode.geometry.location
     @latLng.store(geocode.geometry) if @saveLangLat
+
+  setFromLatLng: ()->
+    @setMarker('latLng', new google.maps.LatLng(@latLng.lat(), @latLng.lng()))
 
   _addListeners: ()->
     google.maps.event.addListener @marker, 'dragend', () =>

    @latitudeInput = $(latitudeInput)
    @longitudeInput = $(longitudeInput)

  store: (geometry)->
    @latitudeInput.val(geometry.location.lat())
    @longitudeInput.val(geometry.location.lng())

      @saveLangLat = true
      @latLng = new LatLngContainer(options['latitudeInput'], options['longitudeInput'])

  apply: ()->
    if($(@mapSelector).length > 0)
      @map = new google.maps.Map $(@mapSelector)[0], @gmapOptions
