Okay
  Public Ticket #817942
error google map appear and disappear with error
Closed

Comments

  • eric started the conversation

    Hi,
    on the Contact page of my site , the Google Map appears correct one second and it disappears, with writting a message error, but when I google this error, it looks in relation with the API Key of google map, already tried to add it, but it does not solve the issue.
    Thanks for your help.
    cheers, Eric

  •  9,099
    Tahir replied

    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 -

    $.getScript('https://maps.google.com/maps/api/js?sensor=false&callback=mapAPI_Loaded');

    will become

    $.getScript('https://maps.google.com/maps/api/js?sensor=false&key=APIKEYHERE&callback=mapAPI_Loaded');

    Cheers


    ThemeNectar Support Team 

  • eric replied

    Hi,
    Thanks, we followed your solution given  below and it solved the problem :
    we found the file " map.js " to modify in the following FTP directory : /html/wordpress/wp-content/themes/salient/js.
    Thanks a lot for help.