Hello Sunfighter, hope you are well
Yes i think its because you need to add basic html for it to work. Here is the example i took from google
https://developers.google.com/maps/d...rlays#HideShow
click the link that says show "View example (overlay-hideshow.html)"