[enhancement] address field
Is it somehow possible to additionally save the address from the search box?
With the current solution we only save lat,lng which is pretty much perfect when displaying a map, but when using different views (text vs map) the lat,lng attributes are kind of useless - an option to save both would be awesome.
My current workaroud would be to have a submit callback which reads the inputfield and saves the data to an additional field.
Regards, lukas
i hacked around with my non existent coffeescript knowledge and came up with this:
saveAddress: true
AutoForm.addInputType 'map',
template: 'afMap'
valueOut: ->
node = $(@context)
lat = node.find('.js-lat').val()
lng = node.find('.js-lng').val()
address = node.find('.js-search').val()
if lat.length > 0 and lng.length > 0
lat: lat
lng: lng
address: address
Something like this would be nice ;) Additionally, i wanted to forbid marking on the map via click to force the user to enter a address. Therefore I comented out:
google.maps.event.addListener @map, 'click', (e) =>
@setMarker @map, e.latLng
Would be nice to have a flag for this :) Regards, Thx for this package! Lukas
+1
+1, much needed
+1
+1 Hi, any progress on this side ? would be really useful