If you’re on a current version of Salient you can add the key into the map.js file in the js folder. The line to mod should be near line 589 of the file -
I haven't gotten my map to work either. I've followed the change on the map.js file, have acquired an API key, but it just comes up white/blank.
I've tried to find solutions to most of these issues via other issues that people have asked. So hopefully this will service as a multiple purpose request.
Hi.
Google map isn't working. It appears less than a second and disappears soon.
I read the same errors below and followed your advice to change the 382 line in map.js
But it still does not work.
I bought this theme July 8, 2016, so I believe it should be the latest version.
I attach the screen shot of map.js I've changed.
You would see 6 JSlint errors in map.js which was there at first.
How can I fix google map to work right?
Thank you for your time.
Hey ,
The issue only applies to new domains where the maps script hasn’t been prior to June 22 of this year. This article explains it: https://www.latecnosfera.com/2016/06/google-maps-api-error-missing-keymap-error-solved.html
If you’re on a current version of Salient you can add the key into the map.js file in the js folder. The line to mod should be near line 589 of the file -
will become
Cheers
ThemeNectar Support Team
I haven't gotten my map to work either. I've followed the change on the map.js file, have acquired an API key, but it just comes up white/blank.
I've tried to find solutions to most of these issues via other issues that people have asked. So hopefully this will service as a multiple purpose request.
I've already done what you got me to do, but the same error ended up showing.
So I solved the problem by using a 3rd party plugin, "Flexible Map".
I've just downloaded the plugin and wrote down my google map api key on the plugin's settings.
Then just put the shortcode of the plugin down on the page where I want google map to appear.
Finally, it works.
I think you need to fix the google map widget you made, just my opinion.
If you have any other idea that ensure me to use your theme's google map widget, please let me know what to do more.
I would like to use the widget of the theme, not a 3rd party plugin, if I could.