I ran into an API issues with my google map. My map was working fine for months, but suddenly starting getting an error “Google Maps Platform rejected your request. This API project is not authorized to use this API.” Everything looked fine on the key. In frustration, I finally created a new project a key. Same problem.
I found this answer from atown99 on stackexchange: The problem was solved from the google console end. Not only do you create a api key for google maps but a little known fact is that you must activate/enable to api key for js and for geolocation in the google cloud console under google maps.
So I went to the APIs and Services link in the Google Cloud Console and enabled anything map related. It now works. Still no idea why my other key worked for months, then stopped.