Title: Google api
Last modified: August 31, 2016

---

# Google api

 *  [eyephone21](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/google-api-6/)
 * I’ve put Google Maps Embed API key with no luck.
    Whichapi is needed exactly 
   to avoid this error i get with chrome developer tools? ( Google Maps API warning:
   NoApiKeys [https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys](https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys))
 * [https://wordpress.org/plugins/map-my-posts/](https://wordpress.org/plugins/map-my-posts/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [ScottRMon](https://wordpress.org/support/users/scottrmon/)
 * (@scottrmon)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-api-6/#post-7157215)
 * I had the same error in the console. To fix it I had to include the API key in
   the script tag as well as the HTML markup. Before I only had it in the HTML which
   would work fine on the page but show the NoAPIKeys error in the console.
 * ‘<script src=”[https://maps.googleapis.com/maps/api/js?key=IncludeKeyHere”></script>&#8217](https://maps.googleapis.com/maps/api/js?key=IncludeKeyHere”></script>&#8217);
 *  Thread Starter [eyephone21](https://wordpress.org/support/users/eyephone21/)
 * (@eyephone21)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/google-api-6/#post-7157216)
 * Thanks ScottRMon!
    I couldn’t find where this script is… Help me, please! :=)
 *  [stevegmag](https://wordpress.org/support/users/stevegmag/)
 * (@stevegmag)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/google-api-6/#post-7157257)
 * I’ve added an api key as well. no luck (on bluehost).
 *  [GabrielWallet](https://wordpress.org/support/users/gabrielwallet/)
 * (@gabrielwallet)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/google-api-6/#post-7157258)
 * I thought I had fixed it by adding this line : <script src=”[http://maps.googleapis.com/maps/api/js?key=MYKEYBLABLABLABA”></script&gt](http://maps.googleapis.com/maps/api/js?key=MYKEYBLABLABLABA”></script&gt);;
   in the <head> section of admin-header.php in wp-admin folder of wordpress.
    That
   allows the map to load at least in the category or tag edit page of the wordpress
   admin, but it crashes seconds after that. Error log says the api key included
   several times on the page, though otherwise it says error no key. Try again.
 *  [stevegmag](https://wordpress.org/support/users/stevegmag/)
 * (@stevegmag)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/google-api-6/#post-7157259)
 * **This is killing me…**
    - Works great without API on dev server on 1and1; breaks with or without API
      on production on bluehost…
    - Installed on a new 1and1 plan and I swear it was working until I pointed the
      Domain (hosted at goDaddy) and it died. — could there be a domain issue?
    - I did the manual key addition to the header… I got the double key message 
      too.
    - When I add a simple call to googlemaps it works:
    -     ```
          <div id="map" style="height: 700px;"></div>
              <script>
                var map;
                function initMap() {
                  map = new google.maps.Map(document.getElementById('map'), {
                    center: {lat: 47.16249, lng: 19.50330},
                    zoom: 8
                  });
                }
              </script>
             <script src="https://maps.googleapis.com/maps/api/js?key=DaKeyGoesHere&callback=initMap" async defer></script>
          ```
      
    - When I added both the simple call and the short-code for my maps I get an 
      error that the page contains two maps..
 *  [stevegmag](https://wordpress.org/support/users/stevegmag/)
 * (@stevegmag)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/google-api-6/#post-7157260)
 * so interestingly the [mmp-geochart mode=”marker”] && [mmp-geochart mode=”region”]
   work fine…. ??? anyone from the plugin developer looking into this at all?
 *  [nicko619](https://wordpress.org/support/users/nicko619/)
 * (@nicko619)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/google-api-6/#post-7157261)
 * Hi, OK so yes we add the API key as described [here](https://www.latecnosfera.com/2016/06/google-maps-api-error-missing-keymap-error-solved.html)&
   [here](https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key)
   as mentioned above, wooohoo, so where is the file within the plugin?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Google api’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/map-my-posts_a0aeb2.svg)
 * [Map My Posts](https://wordpress.org/plugins/map-my-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/map-my-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/map-my-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/map-my-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/map-my-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/map-my-posts/reviews/)

 * 7 replies
 * 5 participants
 * Last reply from: [nicko619](https://wordpress.org/support/users/nicko619/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/google-api-6/#post-7157261)
 * Status: not resolved