how record the clicked point (by some way) on the map(get lat/log from map this only want - on submit)

10 views
Skip to first unread message

L S

unread,
May 14, 2012, 2:28:56 AM5/14/12
to google-ajax...@googlegroups.com
on map api: when appear to visitor the google map, how record the clicked point (by some way) on the map(get lat/log from map this only want - on submit), so save in db and re-appear on map later for reading...?

Jeremy Geerdes

unread,
May 14, 2012, 7:47:42 AM5/14/12
to google-ajax...@googlegroups.com
Use the map's built-in click event to register the click and receive a LatLng object within the Javascript. You can then set up an AJAX request which will send the coordinates in that object back to your server.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On May 14, 2012, at 1:28 AM, L S wrote:

on map api: when appear to visitor the google map, how record the clicked point (by some way) on the map(get lat/log from map this only want - on submit), so save in db and re-appear on map later for reading...?

--
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax...@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-searc...@googlegroups.com
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/j0OQkz0nN24J
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply all
Reply to author
Forward
0 new messages