Skip to content

Instantly share code, notes, and snippets.

@joviczarko
Created June 6, 2016 10:52
Show Gist options
  • Save joviczarko/edbc193354b930ad2913cd2eb8fd1e4e to your computer and use it in GitHub Desktop.
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
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