Hi Davie, Thanks for your help. So, what I really want is to change the size without shaking the map :) If I use getCenter and setCenter the map will shake to the left and after to the center :). Have you seen the panel in the map of the maps.google.com? When click in the arrow to the left, just the panel goes and the map still in the same position just increasing to the left or this it just a effect?
Regards Jonathan Roque On Feb 27, 8:49 pm, davie <daviestrac...@yahoo.co.uk> wrote: > Hi > Try > > //Update current center info. > lastCenter=map.getCenter(); > > new google.maps.event.trigger(map,"resize"); > > // then add the event listener > google.maps.event.addListener(map, 'resize', function(){ > map.setCenter(lastCenter); > > }); > > Regards Davie -- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.