Google Map API Style Error

Hi,

I successfully implemented the Google Map API and when I tried to run it I received an error stating “Cannot read property ‘style’ of undefined”. I was wondering if there was a way to fix this.

Thanks

This means there is no control named map.

Are there any errors before this one?