Support » Plugin: Google Maps GPX Viewer » MissingKeyMapError NoApiKeys FIX

  • Resolved venqka


    In some occasions Google Maps GPX Viewer gives this error:

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

    I tested it on two domains and it worked on one and gave the error on the other. I did this little fix and it works for me.

    Generate an api key
    Navigate to google-maps-gpx-viewer/php/load_jsapi.php and change line 14 from
    $params = "sensor=false&libraries=places,panoramio"// sensor=true
    $params = "sensor=false&libraries=places&key=YOUR API KEY"// sensor=true

    If you have track editor you have to tweak it too. Got to google-maps-gpx-viewer/editor/editor.php and change line 133 from
    <script type="text/javascript">google.load("maps", "3", {other_params:"sensor=false"});</script>
    <script type="text/javascript">google.load("maps", "3", {other_params:"sensor=false&key=YOUR API KEY"});</script>

    Use the same key for both files.

    • This topic was modified 2 years, 1 month ago by  venqka.
  • The topic ‘MissingKeyMapError NoApiKeys FIX’ is closed to new replies.