On Mon, Aug 17, 2009 at 3:55 PM, flaubert<[email protected]> wrote:
>
> Hi everyone,
>
>
> I have two form fields and google maps displayed.
> When click in some location on the map, a want to fill these fields,
> is this possible?
>
>
> what the best way?
>
> tnks a lot!

Use a click event handler in the Google Maps API
It returns a location which contains latitude and longitude.
See more at http://code.google.com/apis/maps/documentation/events.html

Andrew Timberlake
http://ramblingsonrails.com

http://MyMvelope.com - The SIMPLE way to manage your savings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to