On Nov 15, 10:28 am, Sampat <sampatdi...@gmail.com> wrote: > Hi, > I get a js error when I instantiate a Map object. I am trying to move > from v2 to v3 and code worked perfectly fine with version 2.
v3 is different from v2, just because something worked on v2 doesn't mean it will work on v3. > Below are > snippets of both the codes and highlighted line is where I am getting > the error: Map is not defined Please read and follow the posting guidelines and post a link to your map that exhibits the problem if you would like help: http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e > > earlier code(v2) which worked fine: > > google.load("maps", "2.x") > map = new Map2($("#mapDiv").get(0)); > > Current code(v3) which gives error: > google.load("maps", "3", {other_params: "sensor=false"}); > map = new Map($("#mapDiv").get(0)); > > Can you please let me know what might be causing this error. I would suggest you read the documentation for v3. The v3 Map object takes different parameters than the v2 map constructor. -- Larry -- 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.