I need to load several kmz files at one time via Google Maps API, and want to control the opacity for some of the kmz files. Is there a way to do it?

I checked https://stackoverflow.com/questions/4651930/using-a-kmllayer-object-within-the-google-maps-api-is-it-possible-to-allow-a-us, but the methods do not work for me.

By editing opacity via the css, the whole map's opacity will be changed...

1 Answer 1


Please check out http://www.gavinharriss.com/code/opacity-control might be helpful for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.