On Feb 22, 12:58 pm, Krad <[email protected]> wrote:
> Hello,
>
> I'm having truble with the remove of a kml overlay when a checkbox is
> used can some one help?
>
> http://www.mu130.acres-air.co.uk/map2.html

I get a key error on that page, then a map
All the checkboxes except the first give errors because the functions
they call don't exist.

Removing the overlay generates an error because:
map.removeOverlay();

is not the correct syntax.
http://code.google.com/apis/maps/documentation/reference.html#GMap2.removeOverlay

removeOverlay takes an argument (the overlay you want to remove).

working example:
http://www.geocodezip.com/GenericMapBrowser.asp
see the "addTrafficOverlay()" function.

  -- Larry



>
> the code is this:-

No thanks.

> it loads the overlay just can't get it to remove?

>
> also would I get more problems with more overlays and the memeroy
> location of the kml??

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