Google Map: No API Key defined for Google Maps

3 replies·opened Mar 13, 2023
S
sanoramaMar 13, 2023

After updating to canvas 7 gmap seems to be broken:

module.gmap.js:1 No API Key defined for Google Maps! Please set an API Key in js/functions.js File!

	<!-- JavaScripts
	============================================= -->
    <script async src="https://maps.google.com/maps/api/js?key=KEY"></script>
    <script src="js/functions.js"></script>

code example page http://localhost:3000/maps.html is also not working (same error)

enter API directly in fuctions.js is fixing the problem but generated source files should not be edited.

S
SemiColonWebSTAFFMar 14, 2023

Hello,

Simply find the gmapAPI:"" Code in the js/functions.js File and add your API Key. This file can be edited.

Hope this Helps!

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

S
sanoramaMar 14, 2023

is this a temporary fix?

S
SemiColonWebSTAFFMar 14, 2023

Hello,

No, this is how it is supposed to be. We have made the API Key centralized, so you won't need to add them again and again. We will be updating the Documentations on this shortly and add more documentation along the week.

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