Answer the question
In order to leave comments, you need to log in
Does not connect Google map on the landing page. What could be wrong?
Locally everything works, on a hosting does not work. I use the following function for the map:
<script>
function google_maps_54af9a6782fc0() {
var latlng = new google.maps.LatLng(-33.8710, 151.2039);
var myOptions = {
zoom: 13,
center: latlng,
zoomControl: true,
mapTypeControl: false,
streetViewControl: false,
scrollwheel: false,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("google-map-area-54af9a6782fc0"), myOptions);
var marker = new google.maps.Marker({
position: latlng,
map: map
});
}
jQuery(document).ready(function($) {
google_maps_54af9a6782fc0();
});
</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