Hi Esa,
Thank you for your reply.

I believe you have over analyzed the simplicity of the situation...
Here is the process that I'm looking for:

1. User fills out the form with name address etc. below the map.
2. The form gets saved to a Google Spreadsheet and is auto-published
3. The map above the form pulls the information from the Google
spreadsheet
4. The map used the informations from spreadsheet to map the locations
of the user using the lat/lng inputs and displays some other output
data

My concern is that I would like for the map to automatically map the
user location using their address and borough (of new york city)
without them having to enter their own lat/lng coordinates.

I have tried to do this here: http://www.jexd.com/map_new.html using
the getlocation() function but it hasnt work.

Can you please take a look? Thank you!

The original file can be found here: http://www.jexd.com/map.html


On May 10, 7:43 pm, Esa <[email protected]> wrote:
> The interaction between the map and the form is restricted by
> crossdomain restrictions of browsers.
>
> There are some examples where the html content of the form iframe has
> been copied in the map page 
> html.http://gmaps-samples.googlecode.com/svn/trunk/spreadsheetsforms/click...
>
> Now the form can be filled by javascript 'click' event on map. The
> misbehavior takes place when you click the Submit button. You are
> directed away from the map page to the form. I don't know any slick
> way to handle that behavior.
>
> I would suggest keeping the form iframe but making copy/pasting as
> convenient as possible. Instead of separate lat and lng fields, you
> can use a single latlng field. Get the value for copy/pasting by
> clickPoint.toUrlValue(5).
>
> That means a single spreadsheet column for latlng. Spreadsheet feed
> gives you a latlng string you have to parse and convert to GLatLng.
> There is a most convenient static fromUrlValue() method for that:
>
>   var latLng = GLatLng.fromUrlValue(latlng)
>
> I hope somebody has a better idea but that was the solution I chose in
> one of my projects lately.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps API" 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 
> athttp://groups.google.com/group/google-maps-api?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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/google-maps-api?hl=en.

Reply via email to