Initializing map

29 views
Skip to first unread message

Jaume Hernandez

unread,
Nov 22, 2011, 10:16:11 AM11/22/11
to google-map...@googlegroups.com
Hi there,
I just can't get the map showing on this page:


I call initialize() with <body onLoad="initialize()">
and I have a DIV TAG called  <div id="map_canvas">
The funtion and the chackbox thing is decalred on a script before the body.

What I'm doing wrong??? I'm almost going crazy with this.
Thank you
Jaume

Rossko

unread,
Nov 22, 2011, 4:53:42 PM11/22/11
to Google Maps JavaScript API v3
> www.usedausa.com/map.html

You seem to have forgotten to load the Maps API
http://code.google.com/apis/maps/documentation/javascript/tutorial.html#Loading_the_Maps_API

You'll probably want to move your javascript to be inside the <head>
section too

Jaume Hernandez

unread,
Nov 24, 2011, 12:00:50 PM11/24/11
to google-map...@googlegroups.com
Rossko,
I do the body onload at line 91 
and the div "map_canvas" on line 180-182.
Did I forgot anything else????
Thanks

Rossko

unread,
Nov 24, 2011, 2:08:40 PM11/24/11
to Google Maps JavaScript API v3
> I do the body onload at line 91
> and the div "map_canvas" on line 180-182.
> Did I forgot anything else????

I repeat, you seem to have forgotten to load the Maps API, see
http://code.google.com/apis/maps/documentation/javascript/tutorial.html#Loading_the_Maps_API

You'll probably want to move your javascript to be inside the <head>

section too, to make the page HTML valid

Reply all
Reply to author
Forward
0 new messages