Hi,
I am trying to set up a simple google map using this code:
var map;
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(0, 0), 2);
map.addControl(new GLargeMapControl());
map.addOverlay(new GMarker(new GLatLng(0,0)));
}
map.setCenter throws fallowing error:
a is undefined
gp()main.js (line 848)
Pu()()main.js (line 625)
f()()XhNp92qS...2Fg%3D%3D (line 1)
x()()main.js (line 199)
CJ()([undefined, 2 1=2])main.js (line 365)
un()()main.js (line 344)
p([Object Rb=Object lj=zoomend WO=0 ya=50 __type=[4] 0=Object],
function())main.js (line 158)
S(Object j=div#map_canvas wb=[3] U=Object Xz=false, "zoomend")main.js
(line 344)
Ti()((0, 0) __wrappers=[1] __type=[4], 2, undefined, undefined)main.js
(line 652)
va()((0, 0) __wrappers=[1] __type=[4], 2, undefined, undefined)main.js
(line 648)
(?)()()dnslocator (line 117)
F()()jquery-1....2.min.js (line 19)
init()([function(), function(), postLogin(), 1 more...], function(),
undefined)jquery-1....2.min.js (line 12)
F()()jquery-1....2.min.js (line 19)
F()()jquery-1....2.min.js (line 19)
function gp(a,b,c,d,e){Kh(a);if(c){a.ll=...t=g;else delete a.t}a.z=b.F
();S(b,Xd,a)}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---