On Sep 9, 6:07 am, pat007 <patrickgann...@hotmail.com> wrote:
> Hello,
>
> I am new to javascript and I am trying to add a google map to the
> following website:http://mmexp1.ccit.berkeley.edu/test
>
> but it sends an error when I call:
>
> var xx = new google.maps.xxx()
>
> i.e:
> var latlng = new google.maps.LatLng(-34.397, 150.644);
> and
> var map = new google.maps.Map(document.getElementById("map_canvas"),
>
> The error said : - Using mozilla: new google.maps.Map not a
> constructor
>                        - Using chrome: undefined not a function
>
> Maybe it has to do with the <!DOCTYPE> but I am really not an expert
>
> Can I have some help solving this issue?

I get a syntax error on this line in your initialize function:
alert(&quot;1&quot;)
that should be:
alert("1");

You must be editing in a WYSIWYG html editor.  Try a text editor.

  -- Larry

>
> pat007

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to