Support

Account

Home Forums Front-end Issues Ajax Google map Load

Helping

Ajax Google map Load

  • 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 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Ajax Google map Load’ is closed to new replies.