Google Maps error

Hi there.

I have been struggling to find a solution to this for a while. When working in Cornerstone the preview of the map does not show up. However it seems to work fine on any browser. I’ve regenerated an API, re-entered the JS but still no luck. I can’t see the changes I make to the markers.

Any suggestions on how to solve this one?

Thanks in advance.

Hello @BurntMatch,

Thanks for asking. :slight_smile:

Can you please share website URL wherein you have implemented Google Maps module?

Thanks.

Good morning Prasant.

Thanks for your reply. The URL is : www.piratesplate.com.au

But the map shows up on the website. It’s while in Cornerstone trying to edit the map that it doesn’t show a preview. I continue to get the “Sorry! Something went wrong.” message.

Cheers.

Adam.

Hi There,

When you created your API Key.

Did you use the URL:

or

http://www.piratesplate.com.au/*

Please try with the second suggestion.

Let us know how it goes

Hi Joao.

Thanks for your reply. So I went through the process and entered the second URL you mentioned, in Google API Console, to create the API. I deleted the old one and started fresh, but I am still not seeing the preview of the map in Cornerstone.

This is the script I am using:

Is this right? Because it was what I was using previous to this issue and it worked fine.

Hi there,

You mean you added your own google map instead of adding the google map element? But when I checked, that code should have no effect since you added it in your global custom javascript. It’s not a javascript code, but HTML block for javascript, the code is within the file loaded in SRC. Please remove that instead.

As for your issue, it’s been known for maps not correctly displaying in cornerstone preview due to the way it loads the script and API where cornerstone is unable to capture it. It will display, but sometimes not so you may please ignore it for now, as long as it works in the front.

Thanks!

Hi Rad.

No, I still used the classic google map element. So you’re saying that I don’t need that javascript in the Global Custom Javascript? Or I should remove the SRC file?

Thanks.

Hey There,

Please remove the SRC in the global custom js section. Using the Classic Google map or the V2 Google map, you should be able to insert the API directly in the element.

Hope this helps.

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