Title: Google map disappears when API changed
Last modified: June 8, 2020

---

# Google map disappears when API changed

 *  Resolved [mj187](https://wordpress.org/support/users/mj187/)
 * (@mj187)
 * [6 years ago](https://wordpress.org/support/topic/google-map-disappears-when-api-changed-2/)
 * I’ve added my own API key from Google and enabled both Geocoding API and Maps
   JavaScript API as requested, however the google map no longer appears (the key
   is receiving the requests) and just a grey box is shown.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-map-disappears-when-api-changed-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [mj187](https://wordpress.org/support/users/mj187/)
 * (@mj187)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/google-map-disappears-when-api-changed-2/#post-12977443)
 * What URL is the API request is sent from? The map stops working when I restrict
   the key to my TLD (wildcard).
 *  [Kori Ashton](https://wordpress.org/support/users/koriashton/)
 * (@koriashton)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/google-map-disappears-when-api-changed-2/#post-13013523)
 * Hello [@mj187](https://wordpress.org/support/users/mj187/) – Try confirming each
   of the following things:
 * First, confirm that you’ve actually entered your full, un-edited API key into
   the correct settings field in the wp-admin.
 * Next, head to your Google Cloud Platform Maps API management page and select 
   the project that your API key belongs to. Using this screenshot as a reference,
   confirm that both Geocoding API and Maps JavaScript API show up in the In use
   APIs section of the project’s APIs page.
 * If neither is enabled, make a new API key and ensure that the new API key has
   both APIs enabled for it. If issues persist, contact Google’s support team by
   clicking the Support tab in the left-hand sidebar—they should be able to help
   ensure that both of these free APIs are enabled for your API key.
 * Finally, confirm that your venues have valid longitude and latitude data. If 
   you created venues before adding your own custom Google Maps API key, you will
   need to add your custom API key and then use the “Fix venue data” button (see
   screenshot) in The Events Calendar’s settings to update the data and make it 
   accurate.
 * Here’s our full article on it [https://theeventscalendar.com/knowledgebase/k/setting-up-your-google-maps-api-key/](https://theeventscalendar.com/knowledgebase/k/setting-up-your-google-maps-api-key/)
 *  Thread Starter [mj187](https://wordpress.org/support/users/mj187/)
 * (@mj187)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/google-map-disappears-when-api-changed-2/#post-13015286)
 * [@koriashton](https://wordpress.org/support/users/koriashton/) Thanks for extensive
   reply, this issue was actually resolved already.
 *  [Kori Ashton](https://wordpress.org/support/users/koriashton/)
 * (@koriashton)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/google-map-disappears-when-api-changed-2/#post-13015697)
 * Oh great to hear! If you’re able to share on this thread what the fix was it 
   might be helpful to others too.
 *  [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * (@jaimemarchwinski)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/google-map-disappears-when-api-changed-2/#post-13121785)
 * I’m going to go ahead and close this thread since your issue has been resolved.
 * Feel free to open up a new one if anything else comes up.
 * Have a wonderful day!
 * Thanks,
    Jaime

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

The topic ‘Google map disappears when API changed’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Jaime](https://wordpress.org/support/users/jaimemarchwinski/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/google-map-disappears-when-api-changed-2/#post-13121785)
 * Status: resolved