Google Map API not working with Complianz

[ad_1]

Hi @llaiz,

What plugin are you using to place the Google Map?

In any case, if you can re-enable Complianz on the website, this will allow check for the most-likely reason why the issue occurs.

Kind regards, Jarno

Thread Starter
llaiz

(@llaiz)

Hi @jarnovos ,

Thanks for your answer.

I’ve re-enable Complianz.

For your question I’m sorry because I haven’t developpe this website and I don’t know this site very well. But I’ve find ACF Post Types and Contact Form 7 on the page.

Kind regards,

Hi @llaiz,

No problem, thank you for re-enabling the plugin so I could take a look.

I think the main issue here is that the Google Maps is initialized by a file from your theme (main.min.js), and Complianz currently blocks the Google Maps API on your site, but not that theme file; and a dependency error occurs as a result of blocking one, but not the other.

Typically, the solution would be to block main.min.js as well. Which should prevent the dependency error to allow the Google Map to be blocked & loaded correctly after consent.

But in your case, the main.min.js file also contains other code from your theme than just the Google Maps code; meaning that blocking this file with Complianz will not only block the Google Map, but also affect other functionalities in your theme, which are dependent on that file.

For the above reasons, you might decide that you don’t want Complianz to block this Google Map and restore the map to the default/unblocked state. If so, you can disable the Advanced Custom Fields and Google Maps integrations under Complianz > Integrations. This will stop Complianz from affecting the Map, and should allow it to load without issues.

Kind regards, Jarno

  • This reply was modified 49 minutes ago by jarnovos.

Thread Starter
llaiz

(@llaiz)

@jarnovos,

I’ve disable the Advanced Custom Fields and Google Maps integrations and it’s work.

Thanks for your help !

Kind regards and have a nice day,

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer