Google Maps API DeletedApiProjectMapError

前端 未结 2 1738
小鲜肉
小鲜肉 2020-12-14 14:56

I have the exact same problem like Arul.

I am trying to use Google Maps API on my webpage but when I try to implement the map I\'ve got DeletedApiProjectMapError.

2条回答
  •  别那么骄傲
    2020-12-14 15:49

    I have found the solution to the problem.

    You need to enable both the Google Maps Javascript API, and the Geocoding API.

    https://console.developers.google.com/projectselector/apis/library

    and

    https://console.developers.google.com/google/maps-apis/apis/geocoding-backend.googleapis.com

    Afterwards the error was RefererNotAllowedMapError instead of DeletedApiProjectMapError, but that was because I was running it on localhost - and it worked on the actual site after I added the domain in Credentials -> Domain Verification.

提交回复
热议问题