Sunday, July 17, 2016

[Solved] Google Maps API error: MissingKeyMapError

In this article I am going to explain how to solve the Google Maps API MissingKeyMapError.

Description:
I am working on Google Maps and notice an error in JavaScript Console:

Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error

Solution:

The reason of error is now Google requires API key from 22 June 2016. In order to  resolve the error you have to generate API key.

Please read the article to resolve the error : GenerateGoogle Maps geocoding API key

After generate the key, enter the API key as example given below:

<script src="https://maps.googleapis.com/maps/api/js?key=Enter API KEY&js?v=3.23&callback=initMap" type="text/javascript"></script>

No comments:

Post a Comment