Save new position of the dragged marker

108 views
Skip to first unread message

Hemank Lamba

unread,
Jul 22, 2011, 9:18:35 AM7/22/11
to Google Maps JavaScript API v3
Hi

I have written the following code, I want to save the new position of
the marker into a MySQL database.

Now I do realize that javascript is client end and i wont be able to
insert the new position into mysql database without having user to
submit the data.

But can you tell me what will be a good format of doing it.. and it
would be great if anyone has done this before.

I have multiple markers whose draggable parameter is set to "true" and
when a user is done with dragging it, I have given a button of "SAVE"

Now I need to know how is it possible to send the new position of the
markers to backend.

thanks

geoco...@gmail.com

unread,
Jul 22, 2011, 9:36:42 AM7/22/11
to Google Maps JavaScript API v3
Have you seen this "article" in the documentation?
http://code.google.com/apis/maps/articles/phpsqlinfo_v3.html

-- Larry

>
> thanks

GeorgeIoak

unread,
Jul 31, 2011, 2:34:32 PM7/31/11
to Google Maps JavaScript API v3
I've uploaded that code to my server and tried to run it but I'm only
getting the map and not the info window. A marker is placed on the map
when I click on it but the var html ... does not appear to be working.

Has anyone gotten this to work or is it something I'm missing?

On Jul 22, 6:36 am, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:

Rossko

unread,
Jul 31, 2011, 7:55:07 PM7/31/11
to Google Maps JavaScript API v3
> Has anyone gotten this to work or is it something I'm missing?

It works. Can't say if you are missing something, or adding something
unwanted, as we can't see what you are doing.
http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e

GeorgeIoak

unread,
Aug 4, 2011, 7:29:51 PM8/4/11
to google-map...@googlegroups.com
sorry, it was my bad. i was looking at the code and expecting the info window to show up with the marker but on 2nd look i noticed that after the marker was placed you needed to click again to show the info
Reply all
Reply to author
Forward
0 new messages