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

  • Resolved venqka

    (@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 https://developers.google.com/maps/documentation/javascript/get-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
    to
    $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>
    to
    <script type="text/javascript">google.load("maps", "3", {other_params:"sensor=false&key=YOUR API KEY"});</script>

    Use the same key for both files.

    https://wordpress.org/plugins/google-maps-gpx-viewer/

    • This topic was modified 1 year, 10 months ago by  venqka.
  • The topic ‘MissingKeyMapError NoApiKeys FIX’ is closed to new replies.