Created
June 6, 2016 10:52
-
-
Save joviczarko/edbc193354b930ad2913cd2eb8fd1e4e to your computer and use it in GitHub Desktop.
Reinitialize google maps inside accordion (or tab). This case is for wp-google-maps plugin
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
jQuery(document).on('click', '.accordion', function(){ | |
//Functionality of the accordion here | |
//Google Maps fix | |
google.maps.event.trigger(MYMAP.map, 'resize'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment