Created
April 28, 2013 18:56
-
-
Save toddmotto/5477991 to your computer and use it in GitHub Desktop.
Center Google Maps Marker positioning on window.resize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google.maps.event.addDomListener(window, 'resize', function() { | |
var center = map.getCenter() | |
google.maps.event.trigger(map, "resize") | |
map.setCenter(center) | |
}) |
ty!
not working
Thank you very much!
thank you! This was extremely helpful
That was a great help, thank you!!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tks!