Okay
  Public Ticket #826161
Map not working on Contact page
Closed

Comments

  • Shana started the conversation
    http://cr2001.com/directions/

    Map feature not working, receiving this notifcation:

    Oops! Something went wrong.
    This page didn't load Google Maps correctly. See the JavaScript console for technical details

  •  8,994
    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 

  • Shana replied

    Hi Tahir, I updated the line of code in the maps.js file and it still is showing the same message on the page. Any other feedback on how to fix? Thanks for your help!

  • Shana replied

    Nevermind, figured it out!

  • Bruno replied

    Hi all,

    Same issue, same code changed in map.js line 382 with the API key i created... and still not working...

    Any idea ?

    Thx, B.