Apr
23
Google Maps Error: is null or not an object
Filed Under Developers | 4 Comments
If you get one of the following in IE or Firefox:
- a is null or not an object
- oa is null or not an object
- ‘J’ is null or not an object
The error is exactly what it says – you are probably adding or removing a null overlay.
The Fix for this is to do an if statement to check if your overlay is null before you try to add or remove it =
if ( myOverlay != null ) map.removeOverlay(myOverlay);
Tags: google maps, overlay
Previous Post: Backing up a large Subversion repository to S3
Next Post: Syntax Highlighter and Code Prettifier Plugin for Wordpress















You’re so smart.
TJ is an idiot
I did the same , but not working
Dijesh: check for null values. If you are adding overlay, points or anything else.