On Apr 10, 8:32 pm, Macke <[email protected]> wrote:
>   map =  new google.maps.Map(('#map_canvas'), mapOptions);

the error is using the jquery # selector without a reference to
jquery.

If you really want to use jquery for this, it would be:

map =  new google.maps.Map($('#map_canvas')[0], mapOptions);

or instead use the usual getElementById function:

map =  new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to