V
V
Vasily Khryagin2020-04-20 09:42:11
JavaScript
Vasily Khryagin, 2020-04-20 09:42:11

Why is my google map not working?

5e9d4418d4b29613899089.png
This is how she looks

<script>
    function initMap() {
        var coordinates = {lat: 59.964556, lng: 30.280207},

            map = new google.maps.Map(document.getElementById('contacts-map'), {
                center: coordinates
            }),
        
            marker = new google.maps.Marker({
                position: coordinates,
                map: map
            });
    }
  </script>
  <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD57b1klhTcVUYoGhkOf2h1ck2SKmTvNSQ&amp;callback=initMap" async="" defer=""></script>

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