yup load only once then hide and show subsequently and yeah same problem with GeoXml versus GGeoXml
On Sep 24, 5:24 am, Rossko <[email protected]> wrote: > > http://www.maps4kids.com/USMapExplorer.html > > There's a bit of a bug around code like - > case "on": > myLayerCaps = new GGeoXml("http://www.maps4kids.com/caps.kml"); > map.addOverlay(myLayerCaps); > myLayerCaps.show(); > break; > case "off": > myLayerCaps.hide(); > > myLayerCaps is never removeOverlay()'d, so repeated use of the tick > box results in additional hidden Overlays piling up. > I think this is whats behind the visible bug, if you're too quick on > the tickbox you can get a half-rendered KML that can't be got rid of. > Kids WILL be too quick ... > > I'd be inclined to check if myLayerCaps (etc) had already been fetched > before running GGeoXml again, and if so just show() it don't add a new > Overlay. > > I don't think this relates to the original complaint though. It > would still apply if you went the GeoXml route. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
