Sorry it first only appeard to be solved as all my kml ended up
levaing undefined in the condition
if (KmlLayer[i].getDefaultViewport()!= undefined) {

So the
 KmlLayer[i].setMap(null); never executed :-(
Looked at Piers examples and I think I found a similar issue in the
"old_stylev3.htm" example:
When checking the Vuoto checkbox, it is fine but when unchecking the
checkbox, it "crash" as the kml layer is set to ' '
var kml04  = new google.maps.KmlLayer('', {preserveViewport:true});
Same thing as I was trying to do closing a layer that is not an valid
url or closing '' seems to be a bad idea.

Anybody have any workaround this ?

Chers//Martin




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