Support

Account

Home Forums Backend Issues (wp-admin) Problem with refreshing Google Maps

Helping

Problem with refreshing Google Maps

  • Hi,

    I’m working with a third party plugin (Ultimate Widget Manager) and ACF widgets together. I have a small problem with google maps field.

    The Widget Manager plugin gives me ability to edit the widgets in page options. So when I’m opening a sidebar (toggle) then the map is not rendering correctly. (This was a bug before with the tabs.)

    I was trying to search the code but I couldn’t find the part where you call show method on widget toggle or sidebar toggle.

    It would be a big help for me to know on which event you are calling the show method.

    Thank you!

  • Hi @bokorir,

    Thanks for the post.

    I am not sure the issue is very clear, but the map object is created when the document is ready like so:

    var map = null;
    
    $(document).ready(function(){
    
    	$('.acf-map').each(function(){
    
    		// create map
    		map = new_map( $(this) );
    
    	});
    
    });
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.