• Resolved killiantraficant

    (@killiantraficant)


    Howdy!

    Thanks for this really-simple-to-use plug in!

    I’m using Oxygen Builder and on this page, I set up my store locator.

    Map is loading perfectly fine, the stores data also load fine, but when I use the search form, nothing happens.

    In the console it says that Google is not defined at some point, which is weird because I’m loading the script directly inside the page using Code Blocks widget that contains this:

    <script src="https://maps.googleapis.com/maps/api/js?key=MYAPIKEY&libraries=geometry&places&types=address&callback=initMap"></script>
    <script>
                function initMap(): void {
                map = new google.maps.Map(document.getElementById("map") as HTMLElement, {
                center: { lat: -34.397, lng: 150.644 },
                zoom: 8,
                });
                }
            </script>

    Can you help me making the search form work?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter killiantraficant

    (@killiantraficant)

    Hi, does someone ever encountered this issue? Thanks!

    Plugin Author umangmetatagg

    (@umangmetatagg)

    Hii @killiantraficant ,

    Sorry for too delay in response and thank you for interested in plugin. we have noticed that you have added following snippet and used “initMap” callback function and we have already used this call back function in our plugin. Can you change callback function in following function to something else and recheck again.

    
    <script src="https://maps.googleapis.com/maps/api/js?key=MYAPIKEY&libraries=geometry&places&types=address&callback=initMap"></script> <script> function initMap(): void { map = new google.maps.Map(document.getElementById("map") as HTMLElement, { center: { lat: -34.397, lng: 150.644 }, zoom: 8, }); } </script>
    
    

    Also, Can you temporary disable cache on your website and recheck again. It it is still not working, then we need admin login detail if possible from your end. We’ll change callback function in out plugin to make unique in future version to prevent conflict.

    Thanks!

    Thread Starter killiantraficant

    (@killiantraficant)

    Hi!
    Thanks for your reply.

    I am not sure what to do, I tried to remove the callback=”initMap” but then I get this error message in the console:

    jquery.min.js?ver=3.6.1:2 
            
           Uncaught ReferenceError: google is not defined
        at initMap (csl-map-functions.js:2:16)
        at HTMLDocument.<anonymous> (csl-map-functions.js:450:1)
        at e (jquery.min.js?ver=3.6.1:2:30038)
        at t (jquery.min.js?ver=3.6.1:2:30340)

    The cache is disabled on this page.

    Where should I send you the credentials to access the website?

    Thanks!

    Plugin Author umangmetatagg

    (@umangmetatagg)

    Hii @killiantraficant ,

    You can share credentials on [email protected] email.

    Thanks!

    Plugin Author umangmetatagg

    (@umangmetatagg)

    Hii @killiantraficant

    We didn’t got any updates from you. So, we are closing this ticket for now.

    Let me know if you have any questions.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Script loading issues and search form not working’ is closed to new replies.