Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 92
  • Last Modified:

Google Maps

Hi,

I've built a few small basic Wordpress sites over the last few days, and none of the Google maps are working on either of them.

I've created my own theme and I've been using it for a few years and all of the sites / Google maps from before 1 week ago are working fine.

Does anyone know what could be wrong? Someone mentioned that you need to authorise each map now because Google changed their API a few weeks ago?
0
oo7ml
Asked:
oo7ml
  • 4
  • 2
1 Solution
 
Brian PringleSystems Analyst II, SCM, ERPCommented:
It has to be called from inside an Iframe.  Go to the map, click on the share icon, and then click "Embed".  Use that full path and it should work.
0
 
oo7mlAuthor Commented:
I'm actually using the Map API in my theme as I need to add things to the map itself.
0
 
oo7mlAuthor Commented:
I just found this but I have no clue what I need to do now.

https://developers.google.com/maps/pricing-and-plans/standard-plan-2016-update

01 - how do I generate a key?

02 - where do I insert it in my theme?

Thanks in advance to anyone who can help.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
Eric CCommented:
Correct. As of June 22, google no longer supports map access without a key.

1. go to https://developers.google.com/maps/documentation/javascript/get-api-key
2. click 'Get a Key'

Once you get the key, you simply copy/paste it into your WP Admin page.
WHERE you put it, is dependent on the Theme or Plug-In you're using.

If you don't see any button or screen to add your Google Maps API key, then contact the theme or plug-in author and ask for it.
It was required as of last month so I would be surprised if you were using a theme that didn't support it.
0
 
oo7mlAuthor Commented:
Cool, thanks... so do i need to get a new key for every site, or can i use the same key for multiple sites?
0
 
Eric CCommented:
You need a new key for every site, but you can use your same gmail account for all. Just go back to the Map API site and create a new 'project' then generate another key.
0
 
oo7mlAuthor Commented:
Ok great, thanks Eric.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now