"cannot read property offsetwidth of null" problem

589 views
Skip to first unread message

Yossi Beck

unread,
Aug 11, 2011, 8:29:14 AM8/11/11
to google-map...@googlegroups.com
I am in the process of making a google map V3 application for the genealogy program HuMo-gen.
I got a working version, but now each time when I want to add a new feature I get the error message "cannot read property offsetwidth of null".
For example (but there are many) when I added a marker.push(mymarker)  I get the above error and the map doesn't load.
I can't get on with the development because I get thrown this error a lot.
Of course at the moment you won't encounter the problem because I kept it working without any of the options that would cause the error.

I have searched through the forum and found a suggestion by Radina ( see old thread ) to add a separate empty <div> before the call to the map, but that didn't work for me.
The initialization script is placed in the <head> section and is called with body onload.

Any suggestions would be greatly appreciated

Yossi Beck

unread,
Aug 13, 2011, 5:17:12 PM8/13/11
to google-map...@googlegroups.com
Does anyone have any suggestions?
I'm really stuck here...

geoco...@gmail.com

unread,
Aug 13, 2011, 7:26:05 PM8/13/11
to Google Maps JavaScript API v3
On Aug 13, 5:17 pm, Yossi Beck <yosb...@gmail.com> wrote:
> Does anyone have any suggestions?

Maybe post a link to a map that has the problem?
(if your example doesn't (as you imply), its not worth anything)

-- Larry
Reply all
Reply to author
Forward
0 new messages