Google maps API problem (sorry!)

I’m sorry to have to ask this… I’ve read through the forums ( a lot! ) and still haven’t been able to figure out what is wrong…

I’ve got a Google Map on my page in Cornerstone. Put in my API key in the settings. Added my domain to the API settings in Google (as well as trying it as an unrestricted key) - but still I get the “Oops!” message in Cornerstone and the JS error: “Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error

My map shows fine on the front side version of the page (no JS error there as far as I can see)

I’ve tried using different API keys. And I’ve tried my current API key on another X site (it worked there - that site is using Pro 1.1.0 ).

Front page: https://www.eb-c.no/beta/

Cornerstone screen shot:

I just noticed this error… can it be that there are files missing from my X theme install? It was a clean install 2 days ago - maybe I should try a re-install of the theme?:

Hi There,

I can see the issue. I even tried on the test page and yes works on frontend and not when on the builder. Would you mind generating a new API key? I know you have said I’ve tried using different API keys.. Is this the same for every API KEY you have tried on this site?

Thanks for your help! I’ve just made a new, unrestricted, key and put it in but it seems the same…
I put the new key on both the home page and the “maps test” page.
Also, yes, I have tried several keys and they have the same problem - and these keys work fine on other older X sites that I’m running.

Hi There,

Upon investigating this issue further, I see that you have entered your API key incorrectly with spaces. Check the following page included in the secure note.

Thanks!

Thanks, I have just checked again, I have re-entered the key and made sure there is no space - but the problem still happens… please see secure note to follow- Also please check from Cornerstone editor, as this is where the problem occurs - the problem does not occur on the front side:

Hi there,

I think you’re referring the map not being rendered in the builder right? It’s just okay and it’s known issue which we’re still looking for the fix.

It’s because the new google map library is adding multiple scripts when it renders the map (it’s just okay in the front), and those scripts that are generated dynamically by google are not being captured by the builder. Usually, in Wordpress, you have to use https://codex.wordpress.org/Plugin_API/Action_Reference/wp_enqueue_scripts to add your scripts. But that’s not the case in google map since the scripts are added on-the-fly. You may ignore it for now, but should be no problem in the front.

Thanks!