It looks like a scoping issue.

ctaLayer is declared inside the initialize function and therefore is not
accessible to the rest of your code.

Declare ctaLayer as a global variable and you should be okay.

On Mon, Jul 12, 2010 at 11:24 AM, Joseph Elfelt <[email protected]>wrote:

> The KML toggle control on this map works fine.
> http://www.mappingsupport.com/forum_post/toggle_kml_good.html
>
> The KML toggle control on this map causes the KML to briefly flicker
> and then the KML remains visible.
> http://www.mappingsupport.com/forum_post/toggle_kml_bad.html
>
> The only difference is in the 'options' in the line defining the
> KmlLayer.
> KML options for the good map:  {preserveViewport:false}
> KML options for the bad map:    {preserveViewport:false, map:masu.map}
>
>
>
> --
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> 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 [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-js-api-v3?hl=en.

Reply via email to