D
D
Denis Petrenko2020-09-09 12:27:48
JavaScript
Denis Petrenko, 2020-09-09 12:27:48

How to embed Google map using your API key?

I want to embed Google Map in my page. When following the usual "Get Started" from Google and writing my code on the page, I encountered the error "Google Maps Platform rejected your request. This API project is not authorized to use this API."
The api key has been created, connected to the project in the Google Console.
The code I'm trying to embed:

<div class="row">
    <iframe width=80% height=90% frameborder="0" style="border:0"
      src="https://www.google.com/maps/embed/v1/place?key=AIzaSyAM7QQpOJN2DdMN3my5-gP1UTBXJmM6618&q=Space+Needle,Seattle+WA" allowfullscreen>
    </iframe>
  </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim Shurman, 2020-09-09
@Termoslik

1. go to the Developer Console
2. go to Google Maps -> APIs there
3. look for Maps Embed ZWVv0Q7.png
4. enable it for the project TV1IWEb.png
5. finallybmZSubW.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question