How to solve the Google Maps: InvalidKeyMapError
Back in June, 2016 it was announced by Google that a Google Maps API key would now be required when adding Google Maps to your website. Currently any existing Google Maps are still valid however new maps won’t be able to function without an API key.
Luckily its easy to set up an API key and I will run through the steps:
- Head to the Google developer Get a Key/Authentication page.
- Scroll down to Get an API key and click on the Get a Key button. You will need to be logged into your Google account to get the key.
- Enter your Project Name and accept the Terms of Service. Click on Create and Enable API key.
- Paste you API key in place of YOUR_API_KEY. You will find this line of code on the page which you inserted your Google Maps on.