Google Maps API error: MissingKeyMapError
Google-Maps-Error-630x210.jpg
If you get this error like I did here is the solution
Usage of the Google Maps APIs now requires a key.
If you are using the Google Maps API on localhost or your domain was not active prior to June 22nd, 2016(Which was the case for me), it will require a key going forward. To fix this problem, please see the Google Maps APIs documentation to get a key and add it to your application:
https://developers.google.com/maps/d...pt/get-api-key
How to fix the error: step-by-step tutorial
Don’t be afraid, getting an API key (and integrating it) is really fast and simple:
1. Follow this link and click on Get a key:
Google Maps API - Get a key
Google-Maps-API-Get-a-key.jpg
2. Agree with the service Terms of Service:
Google-Maps-API-Agree-with-the-terms.jpg
3. Choose a name for your new key and specify the websites on which the key usage will be allowed. If you don’t need any website restriction, just put an * in that field (but don’t leave it blank! See comments for further information). Then click on Create:
Google Maps APIs - Generate a key
Google-Maps-API-Generate-a-key.jpg
4. Write down your brand new API key, and click OK
Google Maps API - Generated key
Google-Maps-API-Generated-key.jpg
Save your key somewhere, then go to the enqueue.php file located at
public_html/
wp/
wp-content/themes/classipress/includes/enqueue.php
right click the enqueue.php file and click edit
look for this line of code:
//maps.googleapis.com/maps/api/
js';
enqueue.jpg
replace it with
//maps.googleapis.com/maps/api/
js?key=YOURKEY';
YOURKEY being the API key you generated