I’m running google maps with the code example provided on the acf site.
I’m loading my page using ajax but can not get the map to fire after ajax complete, I have put the render map call in my ajax complete function, but the map only shows if i hard refresh the page.
$(document).ajaxComplete(function() {
$('.acf-map').each(function(){
render_map( $(this) );
});
});
I know google maps runs on window load, how can i trigger this in ajax complete?
Hi @tararotten ,
It is most likely that this issue is related to your DOM elements not being loaded correctly.
If you are still having this issue, kindly open a private support thread at [email protected] so that we may have a closer look at the issue.
Have a nice day 🙂