Latest news
Home » Google » Google Map does not center even after resize

Google Map does not center even after resize

You can solve google map re-size problem by triggering following event

lastMapCenter=map.getCenter();
google.maps.event.trigger(map, 'resize');
map.setCenter(lastMapCenter);

Leave a Reply

x

Check Also

Animated Scroll to Top

Jquery code for Animated Scroll to Top

Create a div with class name gotop and Simply Copy paste the jquery code in ...