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.