K
K
knocker832017-10-17 22:04:50
JavaScript
knocker83, 2017-10-17 22:04:50

How to add a key during map initialization?

How to add a key during map initialization?
i.e. initially the api map file was loaded on the map

<script src="https://maps.googleapis.com/maps/api/js" async defer></script>

By clicking on the button, I initialize the map, but for some reason, the key is not added in this way:
GoogleMapsLoader.KEY = 'Key';
What can be done about it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question