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

10 Google Interview Questions shared by an engineer who attend the test

1. What is the opposite function of malloc() in C? Answer: free(). 2. What Unix ...