Plugin Author
Aert
(@aahulsebos)
Hi @shampie,
This seems a dependency issue with Google Maps, are you using the Script Center by any chance? We can add a dependency there if needed.
Otherwise, I need to get my hands on BeTheme and create an integration.
The issue here is that the script mfn_google_maps should wait for the Google API to load. Let me know how much you want to code yourself, so I can make a suggestion,
regards Aert
Hi @aahulsebos,
thank you so much for your message!
I’m not using the Script Center yet…
I tried to add a little code, so that this function would wait until “google” exists, but then something else complained about not finding “google” :/ Was that the right way of doing it?
I added this code, to the function call:
jQuery(document).ready(function(){
if(!google){
window.setTimeout(function(){
mfn_google_maps_622b74ab6f200();
console.log("nope");
}, 100);
} else {
mfn_google_maps_622b74ab6f200();
console.log("yay");
}
});
before it was just this:
jQuery(document).ready(function(){
mfn_google_maps_622b74ab6f200();
});
Thanks again for your help!
Shampie
-
This reply was modified 4 years, 2 months ago by
shampie.
-
This reply was modified 4 years, 2 months ago by
shampie.
Plugin Author
Aert
(@aahulsebos)
Hi @shampie,
I would suggest using this set-up; https://github.com/Really-Simple-Plugins/complianz-integrations/blob/master/custom-google-maps.php and add it as a MU plugin.
I have a copy of BeTheme, so whoever is first:-)
regards Aert
Hi @aahulsebos,
I did as described in the “How to use these integrations” section. But I still don’t get it to work 🙈
In the plugin is written
Replace initMap with a variable from the inline script which runs the init, or the URL where this script resides.
and I replaced it with “map” – but I’m not sure if that’s correct though?
best wishes
Shampie
Plugin Author
Aert
(@aahulsebos)
Hi @shampie,
I mentioned getting the BeTheme, but all I got received was a Dev License by BeTheme, I asked for the files, but not yet received them.
Sorry for the delay, if you are able you could send us your copy as well, so we can use it with our license via complianz.io/contact/ or us wetransfer.com.
regards Aert
Plugin Author
Aert
(@aahulsebos)
Hi @aahulsebos,
thank you for this! The error message is gone, but my Google Map won’t show up neither… Any idea?
Greetings
Shampie