I found your resize() function:
function resize() {
alert("test");
var center = map.getCenter();
google.maps.event.trigger(map, "resize");
map.setCenter(center);
}
and in Modal options
onShow: function (dialog) { resize(); return false; },
onClose: function (dialog) { $.modal.close(); resize();},
I think that onShow event comes too early. Before the div #hartagoogle
has reached its final size. If there is no more suitable event
available, you could add a setTimeout() of say 100 ms inside your
resize().
resize() call in onClose does not do anything useful. You could delete
that.
----------------------
This is one of those cases where 'size' option of Map() would solve
the trouble in a simple way. v2 has that option.
http://code.google.com/p/gmaps-api-issues/issues/detail?id=1997
--
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.