Yes, there's a cache. I suggest appending a time-dependent dummy parameter
to the URL:

var cacheBust = parseInt(new Date() / (1000 * 60 * 60), 10);
new google.maps.KmlLayer('http://myserver/cta.kml?' + cacheBust);

This will update the KML file every hour (1000*60*60 = one hour in
milliseconds)

--
http://twitter.com/broady



On Fri, Jul 8, 2011 at 12:30 AM, az <pmilen...@gmail.com> wrote:

> Hi
> I have a kml file that I plot to the map using
> *var ctaLayer = new google.maps.KmlLayer('http://myserver/cta.kml');
> ctaLayer.setMap(map);*
> Initially there were only 2 points in the kml file and they plotted OK
> first tile only.
> Afterwards if I add new points to the kml they are not plotted at all. Is I
> change the name of the kml to something new, only then are the new points
> plotted.
> Is there some kind of cache somewhere and how I can make the changes to kml
> file visible, i.e. newly added points plotted?
> Thnaks
> *
> *
> *
> *
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/jNrV2YwC29YJ.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to