On Dec 23, 10:31 am, Tremblay <[email protected]> wrote:
> I have searched all over the Internet for a solution to my problem. I
> have a kml that is constantly updated...it's a network monitoring, so
> we constantly update the kml.
> Let's say i open the kml 100 times a day. The function who loads the
> kml, instead of showing the fresh one, loads from the cache (I suppose
> that theory) an old version.
>
> Assume the following code:
> ///////////////////////////////////////////////////////////////////////////­///////
>       // Load kml file in ram
>       function load_kml(kml){
>       kml = kml + "?"+(new Date()).getDate();
>       alert(kml);
>         geoXml = new GGeoXml(kml);
>       }
> load_kml("http://jftremblay.net/google/google.kml";);////////////////////////////////////////////////////////////////////////­////////////
>
> Barry Hunter said in another post that if I add a querystring to my
> request (in this case a getdate function), a fresh kml will be loaded

That works for me.

> but, in this case, even when I push Ctrl+F5 to make a fresh page load,
> it doen`t work.
>
> Any idea???

Follow the posting guidelines and post a link to your map?
http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines

and:
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

  -- Larry

--

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