S
S
Sasha Brahms2015-11-09 09:09:45
JavaScript
Sasha Brahms, 2015-11-09 09:09:45

Why won't google maps load?

Inserted like this:

<script>
function initMap() {
  var map = new google.maps.Map(document.getElementById('act_maps'), {
    zoom: 8,
    center: {lat: -34.397, lng: 150.644}
  });
}
    </script>
    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDkCvFmeobK5UYdTiKs7IBQ8GLeKeDrk2I&signed_in=true&callback=initMap" async></script>
  </body>

but here's what I see:
pPcByIV.png
But when I open the code view (f12 or the current element), then everything loads fine, etc.
tmTSnuZ.png
There are no errors, the console is empty, what could be the matter?
overrides another plug-in script, but it only handles button clicks and form submissions..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-11-09
@Dlike

Given that your code works fine on its own, the problem is somewhere else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question