Search code examples
javascriptgoogle-mapsgoogle-maps-api-3google-maps-api-2

a is null in my Google Map


I put javascript code in my main.js file. With the following:

http://jsfiddle.net/Rochefort/Q7Vwg/ (Can't copy my code here)

But checking in Firebug, I get this error:

''a is null'' in 29. line.

enter image description here

What's my problem?


Solution

  • a is null usually means your map is not initialized and you are trying to use it