{ Dev Farm }

Web & Windows Development

Google Maps API

Home Forum Wp Gpx Maps Support Google Maps API

  • Questo topic ha 2 risposte, 1 partecipante ed è stato aggiornato l'ultima volta 10 anni, 1 mese fa da Henson.
Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
  • Autore
    Post
  • #25557 Rispondi
    Jo Swan
    Ospite

    Google Maps API Key Integration & support.

    I’ve installed the plugin, uploaded a couple of gpx files, pasted the short code but the maps load and disappear again with a java error – after investigating the error, it turns out all newly created G-Maps (since 22-06-16) needs an API key. Got the API key but where do I integrate the API key? I’m not a programmer so I would not know where to start looking. The Google documentation suggests: “Locate the file that contains the Google Maps script code on your website, and append your API key to it as a parameter:
    1 <script async defer src=”//maps.googleapis.com/maps/api/js?key=YOUR GOOGLE API KEY” type=”text/javascript”></script>

    If there aren’t other parameters, just add ?key=YOUR_API_KEY at the very end of the src path; otherwise, add &key=YOUR_API_KEY instead, like this:
    1
    <script async defer src=”//maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&key=YOUR_API_KEY” type=”text/javascript”></script>
    Obviously, in both cases you must replace YOUR_API_KEY with your actual API key code.

    Where do I find this “file that contains the Google Maps script code”?

    Alternatively, what are the steps to integrate the API key?

    Thanks.

    #25569 Rispondi
    Richard
    Ospite

    I would like to know the same!

    This page gives the following information:
    https://developers.google.com/maps/documentation/javascript/tutorial

    <script async defer
    src=”https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap”&gt;
    </script>

    API key can be requested here:
    https://console.developers.google.com/apis/credentials

    #25575 Rispondi
    Henson
    Ospite

    Since the WP GPX Maps plugin doesn’t provide you with a settings field for inputting your newly acquired API key, you will need to install another plugin as a work around. The new plugin is called Google API KEY, and can be found at the following link: https://wordpress.org/plugins/api-key-for-google-maps/

    I hope this helps.

Stai visualizzando 3 post - dal 1 a 3 (di 3 totali)
Rispondi a: Risposta #25575 in Google Maps API

You can use BBCodes to format your content.
Your account can't use Advanced BBCodes, they will be stripped before saving.

Le tue informazioni:




Non è possibile lasciare nuovi commenti.