Google Map Java Script Error in Editor

Hello,

I am having some trouble with Google maps with markers in Pro. When a user goes to the site, the maps look fine. However, I get error messages in the editor. So, everytime I want to try a change I need to save, refresh and go to a preview page to see any little adjustment.

My API key restrictions are set to allow my entire domain, cornerstone, and just for good measure the exact link to the editing page.

After going in circles with ThemeCo reps for 11 days who simply tell me “your maps are working” they now tell me to take the problem to the forums. Hopefully, someone here can help. To be clear, I know the maps are working for users. I need them to work for me in the editor as well.

This issue is consistent in my office computer, home computer, and laptop even after clearing caches.

Thank you so much for any help you can provide!

@StickAndGrow
I was recently having this problem on domains that were setup and working fine. The the issue apparently was a change in google? You can try this and you may already have.

Google developers console and click to edit api key

Once open go to Credentials and edit the API Key

Accept requests from these HTTP referrers (web sites) (Optional)
Use asterisks for wildcards. If you leave this blank, requests will be accepted from any referrer. Be sure to add referrers before using this key in production.

Add the following with your domain

Even if your not using https:

http://your-domain-here.com/*
http://www.your-domain-here/*
https://your-domain-here/*
Note: It may take up to 5 minutes for settings to take effect

Also make sure to go back to the dashboard and re-enable the key after you add all of the variations

Hope this helps

Hey there,

Thanks for chiming in @bjmiller

@StickAndGrow would you mind giving us a screenshot of your API setup in a secure note.

It should look like this *.example.com/*

That will cover everything.

Thanks.

Hi,

The shot your are asking for is in the photo I provided in my original post.

Thanks.

BJ,

Thank you for the suggestion. I have added the additional restrictions that you suggested. Unfortunately, there was no change. It has been longer than five minutes. I’ll check again in the morning just in case it needs some more time.

Glad you were able to figure it out :slight_smile:

I wasn’t able to figure it out. It’s still not working.

@StickAndGrow,

To make sure if this is something related to your API key or not, would you please kindly add the API I attached as a secure note and check the case? That is my personal account API key and it is working like a charm in my installation.

Thank you.

Hi,
I’m just back from vacation. I will try this and get back to you.
Thanks!

Sure, do let us know how this goes!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.