Ilan Biala
Ilan Biala

Reputation: 3417

google maps api v3 uncaught typeError: Cannot read property 'offsetWidth' of null

Im going through a HTML5 book that includes geolocation, which I've been able to figure out. However, the next step is to include a map using the google maps API. I've already gotten an API key and have structured everything just like the book and the google documentation said, but I can't seem to figure out this problem. On line 29 in the main.js file on http://ilanshomekitchen.x10.mx/projects/Geolocation/, there is an: "Uncaught TypeError: Cannot read property 'offsetWidth' of null. I've searched google and so far nothing has worked. I even defined the height and width of the map in the css file on the site.

Any ideas?

Upvotes: 2

Views: 11005

Answers (1)

PoulsQ
PoulsQ

Reputation: 2016

i've been on your page and i saw this :

<div id="map>

Close the property like that :

<div id="map">

It could fix some problems :)

Upvotes: 6

Related Questions