Google Style Map not working

Hello everyone,

I’ve added a google map element and corrected linked it with my google API and I’ve also added a google map style, but nothing is showing up.
Here’s the page: https://www.masalledesport.ch/

Furthermore, I’ve noticed that it’s turning off my sticky header :confused:

Hi there,

There seems to be a different javascript error that is causing the map not to show.

Kindly try testing for plugin conflict as a plugin might be causing the issue. Also, if you have recently updated either Cornerstone or X, kindly make sure both are updated and not just one of them to avoid possible issues.

Hope this helps.

I’ve checked everything you said and unfortunately nothing changed :confused:

Hello @marbinx,

Thanks for updating thread. :slight_smile:

Can you please share website login credentials in a secure note for us to take a closer look?

Thanks.

Did you got the credentials?

Hi,

Please provide your login credentials in Secure Note(key icon)

Thanks

Credential shared

Hi There,

Thanks for the credential!

There is an issue with the map style code. If you remove it, the map works fine.

Please check the code and re-enter the correct code.

Hope this helps!

Thanks!

Thanks for your answer.
Unfortunately i’ve checked the code and it’s correct. I’ve even take a sample directly from google but still not working.

Hi There,

Thanks for the update!

I can see the issue is still there in my setup too. It has been fixed in our development cycle and will be release in next update.

For the time you can fix it by replacing a single line of code.
Please go to
pro/cornerstone/includes/elements/mixins/map.php

Replace this line
'map_google_styles' => x_module_value( '', 'markup' ),
with
'map_google_styles' => x_module_value( '', 'markup:raw' ),

For x theme the path would be cornerstone/includes/elements/mixins/map.php

Hope this helps!

Thanks

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