when I navigate to the map on my webapp, the 'map container div' gets
display:block (so div size changed).
this means I have to resize the map and set the center of the map again...
the problem is, that this only works when I set a little timeout...
(yes, my div is visible before I execute this code...)
setTimeout( function(){
google.maps.event.trigger( detMap, "resize" );
detMap.setCenter( p.latLng );
}, 20 );
I think there must be a better way to do this???
Is there a workaround?
thx faeb187
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-maps-js-api-v3/-/Vfv5lxZKVUQJ.
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.