Answer the question
In order to leave comments, you need to log in
Why is the google map not loading on the site via js api?
The site does not load the google map, the yandex map also does not load. No errors appear. On the local everything is OK, on other sites too. API key received, domain verified
website: kiik.kz
code:
var googleMap;
function initGoogleMap() {
console.log('google map API ready');
googleMap = new google.maps.Map(document.getElementById('map_block'), {
center: {
lat: -34.397,
lng: 150.644
},
zoom: 8
});
}
<script src="https://maps.googleapis.com/maps/api/js?v=3&key=AIzaSyChBI7R9JqS2pLOfxDUTkpVaI_0n0exSmY&callback=initGoogleMap" type="text/javascript"></script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question