0

I have an API code and I want to use it to make a map on my localhost-page. The code for the map is:

<script async defer
src="https://maps.googleapis.com/maps/api/js?key=MYAPI&callback=initMap">
</script>

But when I open the page, it displays, there is an error, details in the Javascript Console. In there is following:

Google Maps API error: ApiNotActivatedMapError

The API is activated, so what is the problem?

Edit 1: As I just saw, I have just activated the wrong API.

NiciBozz
  • 57
  • 1
  • 12
  • See http://stackoverflow.com/questions/35700182/apinotactivatedmaperror-for-simple-html-page-using-google-places-api – dev8080 Apr 13 '17 at 09:21

1 Answers1

2

This post helped me when I faced a similar problem. It could simply be that one or more of these services / API's haven't been activated:

  • geocoding service

  • directions service

  • distanceMatrix service

  • elevation service

  • places library

It is clear that your error refers to the fact that you haven't activated one or more of the above mentioned services (which are required after June 2016). So I suggest you have a look at their website:

developers.google.com/maps/documentation/javascript/get-api-‌​key

Community
  • 1
  • 1
geostocker
  • 1,190
  • 2
  • 17
  • 29