I think I found how to do it.

I use bounds_changed.

To check when the bound change and when to send a request to the server to
get the markers...

But how can I put a timer... For example wait 2 second before it sends the
request...?

Then I take the JSON and via foreach I do this:

var marker = new GMarker(latlng, {draggable: true});

marker.bindInfoWindowHtml("<h1>You clicked here!</h1>");

map.addOverlay(marker);



That's how I see it.

And for saving I have a solution that I will post later.

Is there any other recommendations?

Thanks to all.

On Tue, Apr 20, 2010 at 5:17 PM, Jean-Nicolas Boulay Desjardins <
[email protected]> wrote:

> Forget my question :)
>
> I did not see the link...
>
> Now, how can I use JSON?
>
>
> On Tue, Apr 20, 2010 at 5:14 PM, Jean-Nicolas Boulay Desjardins <
> [email protected]> wrote:
>
>> You are right Rossko I though about putting it in JSON and I know how to
>> do it on the server side... But I don't know how to handle it on the user
>> side. I will look at your link...
>>
>> But now my question is: How can I get a list or a JSON of all the modified
>> markers... what is the function?
>>
>> Thanks to all of you for all your time and help.
>>
>>
>> On Tue, Apr 20, 2010 at 1:10 PM, Rossko <[email protected]>wrote:
>>
>>> > How can I get all the changes and send them to the server so that I can
>>> save
>>> > the new location in my database?
>>>
>>> If the information is coming from a database in the first place ,,,
>>> transforming it to KML is giving you unnecessary complications.   It
>>> would be easier to use a custom XML or JSON data transfer.
>>>
>>> An example with the basic principles of sending to a database
>>> http://code.google.com/apis/maps/articles/phpsqlinfo.html
>>> You would need to modify it heavily, but as you suggested, the key
>>> thing is for the db to pass out an ID of some kind so that it knows
>>> what to with an update with a matching ID, if one comes back.
>>>
>>> --
>>> 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]<google-maps-api%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-maps-api?hl=en.
>>>
>>>
>>
>>
>> --
>> Name / Nom: Boulay Desjardins, Jean-Nicolas
>> Website / Site Web: www.jeannicolas.com
>>
>
>
>
> --
> Name / Nom: Boulay Desjardins, Jean-Nicolas
> Website / Site Web: www.jeannicolas.com
>



-- 
Name / Nom: Boulay Desjardins, Jean-Nicolas
Website / Site Web: www.jeannicolas.com

-- 
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