gmap trouble. Even code example doesn't work

3 replies · opened Feb 3, 2025

RRickR1Feb 3, 2025

I'm trying to get the gmap to work, but nothing is coming up. I created an API key and restricted it as per the documentation and then applied the API key within the js/functions.js file. I'm not even trying to create a proper map yet. I just want to see ANY map show up.

This is code: <div class="gmap" style="height: 250px;" data-address="Melbourne, Australia" data-zoom="12" data-markers='[{address: "Melbourne, Australia",html: "Melbourne, Australia"}]' data-icon='{image: "images/icons/map-icon-red.png",iconsize: [32, 32],iconanchor: [14,44]}'></div>

Got any tips for this?

RRickR1Feb 4, 2025

I see within the console the error message is "functions.bundle.js:5064 No API Key defined for Google Maps! Please set an API Key in js/functions.js File!" But I assure you the API key is within that file. I've restricted the key to my fully qualified domain, plus I've tried just the main domain, plus also tried adding some wildcards too. The key is MOT restricted to any specific API. I'm trying to keep it as open as possible to help troubleshoot the issue.

Any ideas?

RRickR1Feb 4, 2025

Welp I got this working in Chrome, edge now. There were a lot of API's within google that had to be 'enabled', and that was not described within the canvas documentation. Maybe it was assuming I had Google API experience, but I assure you that I do not.

Now an issue remains in which the Brave browser still reports an missing API error. Although it does work sometimes. Weird.

Time to play with more settings....

SSemicolon WebSTAFFMar 7, 2025

Hello,

Apologies for the Inconveniences caused!

The Steps to enable the API Services have been mentioned in the Documentation in the Google Maps Screenshots section: https://docs.semicolonweb.com/docs/shortcodes/google-maps/#docs-gallery . Enabling these API Services should make sure that your Google Maps API works seamlessly across devices.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard