I'd probably avoid jQuery here, unless you plan to use it in other places on the page; it's seems a bit like overkill for this situation. Whenever I have a problem with IE, I usually jump straight into checking the HTML. If you go here: http://validator.w3.org/check paste your HTML in and mark the HTML Tidy option, then you can eliminate most problems. I also suggest you try using
google.setOnLoadCallback(initialize); in place of the body onload, I have not had a problem with this in IE. I put the suggested edits on PasteBin: http://gmap_assist.pastebin.com/2LuA2R5c But I don't have IE handy, so I cannot test it. Good luck. On Dec 21, 3:56 pm, Vicky <[email protected]> wrote: > Hey Chad! Thanks for your input! It worked in Firefox. Now I can't > make it work in IE. > > Well, actually, I can, but in that case it won't work in FF. If I use > a jquery $(function() { initialize(); }); script, or initialize it > with <body onload=...> it shows in FF. > > IE will show just as in the beginning, with only one corner of the > actual map. But, if I click on the tab a second time, it will work. > > BUT: > > If I place a script just before the </body> tag, as mentioned in some > posts, it will show just right in IE, but not in FF. FF will actually > show me the centered map for one second, before it picks another > center (the one that was displayed before the fix). > > I'm starting to hate this thing :-( > > On 21 dic, 15:19, Chad Killingsworth > > > > > > > > <[email protected]> wrote: > > The problem is that your map center doesn't change when you resize your map. > > If you want the center point to be maintained for the new map size, alter > > your resize event like so: > > > google.maps.event.addDomListener(getElementsByHref('mapa')[0], > > 'click', > > function(){ > > var center = map.getCenter(); > > google.maps.event.trigger(map, 'resize'); > > map.setCenter(center); > > > }); > > > Chad Killingsworth -- 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.
