ApiNotActivatedMapError for simple html page using google-places-api

前端 未结 5 911
执念已碎
执念已碎 2020-12-07 11:30

I\'m trying to create a simple html page (I\'d later like to add an autocomplete input there) that include google-places-api. I have an api-key (which is enabled) but I stil

5条回答
  •  感情败类
    2020-12-07 12:19

    Have you tried following the advice on the linked help page? The help page at http://g.co/mapsJSApiErrors says:

    ApiNotActivatedMapError

    The Google Maps JavaScript API is not activated on your API project. You may need to enable the Google Maps JavaScript API under APIs in the Google Developers Console.

    See Obtaining an API key.

    So check that the key you are using has Google Maps JavaScript API enabled.

提交回复
热议问题