You are calling your initialize function with jQuery's document.ready event. This is incorrect when using the ajax loader. Instead, you should use:
google.setOnLoadCallback(initialize); Chad Killingsworth On Jun 9, 2:09 pm, Bossco <[email protected]> wrote: > This is happening only in Chrome, > > first of all, the map is not rendered, when I debug I can see the > object map is created with all the parameters, but is not being > rendered, as consequence getBounds is not working, I got "undefined" > > This is happening ONLY in Chrome, I have tested it on Safari, IE7, > IE8, Firefox, Opera > > Here is my code > > var myLatlng = new google.maps.LatLng(lat, lon); > var myOptions = { > zoom: defaultZoomLevel, > mapTypeId: google.maps.MapTypeId.ROADMAP > } > map = new google.maps.Map(document.getElementById("mapDiv"), > myOptions); > > lat/lon are not empty. This is the website that I'm working onwww.vixles.com > > I would appreciate any feedback. > > Thanks. -- 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.
