Hi,

If you would like to refresh kml layer - you can just add new and hide
old one, for example:

var grid;
function refreshMap() {
   if (typeof grid != 'undefined')
      map.removeOverlay(grid);
   grid = new GGeoXml("file.kml");
   map.addOverlay(grid);
}

and then attach it to button:
<button onclick="refreshMap()">refresh</button>

Michal B.

On 28 Sty, 05:51, Jim O <[email protected]> wrote:
> The documentation for viewrefreshmode->onrequest says:
>
> "Refresh the file only when the user explicitly requests it. (For
> example, in Google Earth, the user right-clicks and selects Refresh
> in
> the Context menu.)"
>
> I am putting a dynamic layer on my Google Map with GGeoXml. I have a
> networklink that calls a server-side program that generates the KML.
> I
> want to refresh the KML when the user performs some action, like
> click
> a button. How can I invoke onrequest through my JavaScript?
>
> Thanks

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