Can Google confirm this: "you probably have to make the div visible when the map object is created."
Thank you, Marcelo! On Feb 16, 1:11 pm, Marcelo <[email protected]> wrote: > On Feb 16, 9:58 pm, "Jbridge.NET" <[email protected]> wrote: > > > > > I think same problem in mapV2 > > In V2 you can pass the map size to the constructor. In V3 there seems > to be no such option, that's why you probably have to make the div > visible when the map object is created. > > -- > Marcelo -http://maps.forum.nu > -- > > > > > > > On Feb 16, 12:31 pm, "[email protected]" <[email protected]> > > wrote: > > > > On Feb 16, 11:58 am, "Jbridge.NET" <[email protected]> wrote: > > > > > Now, I have them hard-coded: > > > > > var lat0 = 37.805; //google.loader.ClientLocation.latitude; > > > > var lon0 = -122.27; > > > > //google.loader.ClientLocation.longitude; > > > > > try and see if the script can *PASS* > > > > Typing "javascript:map_init()" in the address bar of your page with > > > the map displayed, makes it display correctly. > > > > However, looking at aqMap.js, it looks like that is setting map to > > > null, which may be causing problems (map is not defined when the map > > > finishes rendering...) > > > > -- Larry > > > > > Many thanks, Marcelo > > > > > On Feb 16, 11:41 am, Marcelo <[email protected]> wrote: > > > > > > On Feb 16, 8:34 pm, "Jbridge.NET" <[email protected]> wrote: > > > > > > > same even I hard-code these 2 numbers, plus map did center right, > > > > > > and > > > > > > draw partially. > > > > > > The point is that *WE* cannot help you if the script doesn't get > > > > > passed that line when it runs on our computers! Doh! > > > > > > -- > > > > > Marcelo -http://maps.forum.nu > > > > > -- > > > > > > > I guess it's related to the layout div. same code works nicely > > > > > > at:http://gate1.baaqmd.gov/aq/test.htm > > > > > > > On Feb 16, 11:11 am, Marcelo <[email protected]> wrote: > > > > > > > > On Feb 16, 8:09 pm, "[email protected]" <[email protected]> > > > > > > > wrote: > > > > > > > > > On my computer google.loader.ClientLocation fails, so the map > > > > > > > > doesn't > > > > > > > > get initialized correctly. > > > > > > > > Same here. > > > > > > > It'd be advisable to check if google.loader.ClientLocation is > > > > > > > defined > > > > > > > before trying to read from it. > > > > > > > > -- > > > > > > > Marcelo -http://maps.forum.nu > > > > > > > -- > > > > > > > > > -- Larry > > > > > > > > > > TIA- Hide quoted text - > > > > > - Show quoted text - -- 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.
