You might be able to do it without a full browser refresh, by creating a periodic function which runs every ~30 seconds. This would probably begin by clearing your existing markers from the map, then loading the new markers from their source again.
Alternatively, a very easy (though less elegant) solution would be to stick <META HTTP-EQUIV=REFRESH CONTENT=30> in the head tag (change content=30 to the number of seconds you want to allow between refreshes). On Aug 11, 12:19 pm, Rossko <[email protected]> wrote: > > What I would like to do is to "auto" update the map with the new node > > by showing a marker when someone logs into that node. > > I have developed a script that shows the markers when I load the page, > > however I would like to auto-reload the map when new data is > > available. > > You can't 'push' updates to a client, but you can make a client > refresh itself periodically. > Look int javascript's setTimeout or setInterval functions. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
