how to have a jquery script executed after map loaded

New home Forums Pro Add-on how to have a jquery script executed after map loaded

  • This topic has 1 reply, 2 voices, and was last updated 2 months ago by AbelC.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #61539
    matthieu3960
    Participant

    Hi,

    I’m trying execute a jquery script after map is loaded
    How to do that properly ?

    #61556
    AbelC
    Moderator

    Hi There,

    Thank you so much for getting in touch with us, and our sincere apologies for the delayed response over the weekend.

    You will be able to execute a jQuery script once all the markers loaded on your map by adding your code in the following function below:

    jQuery(window).on('markersplaced.wpgmza', function(){
    
    // Your script
    
    });

    Please do let me know if this is working for you and I look forward to hearing back from you.

    Kind Regards,
    Abel

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.