An integration with 10web.io Google Maps (also known as 10WebMapBuilder) is available as an MU Plugin on GitHub: https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/Google%20Maps/10web-google-maps.php
This integration blocks the Maps API and other JavaScript that depends on it, before consent is obtained from the website visitor. It subsequently unblocks and reloads the scripts in the correct order.
For instructions on the installation of an MU Plugin, please see our earlier article: Adding filters with MU Plugins. Quick & Easy
Configuration
- Upload the “10web-google-maps.php” file to the /wp-content/mu-plugins/ directory on your site
- Enter your Google Maps API Key in the 10web Google Maps (10web Map Builder) plugin
- Create a new map and place the shortcode on a page
Example
If your implementation is correct, you should see results like in the below video.