how to make map updatabe?

28 views
Skip to first unread message

jeltz

unread,
Jan 23, 2012, 12:14:59 PM1/23/12
to google-map...@googlegroups.com
Hi,
I have an application to collect telemetry data from geographically distributed sensors and to visualize status in Google Map.
E.g., presently my app outputs Google map API 3 html/java script into the local folder.
 Presently, the application just overwrites output html with the new html/javascript whenever something in sensor status is changed
I am using java script timer to re- load the page periodically, but it seems as new html is never loaded.
What would be the simplest approach to update google map "on demand" ?
Thanks,
-V

geoco...@gmail.com

unread,
Jan 23, 2012, 10:04:18 PM1/23/12
to Google Maps JavaScript API v3
AJAX (Asynchronous Javascript And Xml [or JSON])

Use a cache busting argument in the URL to prevent the browser from
caching it.

-- Larry

> Thanks,
> -V

jeltz

unread,
Jan 27, 2012, 5:40:43 PM1/27/12
to google-map...@googlegroups.com
I thought AJAX can get data from server without reloading page. How does that can help? I need to reload page when content is changed on server.

geoco...@gmail.com

unread,
Jan 27, 2012, 5:48:00 PM1/27/12
to Google Maps JavaScript API v3
On Jan 27, 2:40 pm, jeltz <vlyamt...@gmail.com> wrote:
> I thought AJAX can get data from server without reloading page. How does
> that can help? I need to reload page when content is changed on server.

My point was that you don't need to reload the page when the data on
the server changes. But maybe I misunderstood your requirement.

-- Larry
Reply all
Reply to author
Forward
0 new messages