I'm a new web developer and trying to get an embedded Google map on a website for my client. When I test the .html files on my machine and others too it works perfectly but when I run the website on the hosting service and domain that I bought from godaddy.com the map does not work...
Anyone have any thoughts on how to fix this. The google map embed code is below if that helps. Thanks in advance.
<div id="googleMap"></div>
<script src="http://maps.googleapis.com/maps/api/js"></script>
<script>
var myCenter = new google.maps.LatLng(40.289696, -111.720798);
function initialize() {
var mapProp = {
center:myCenter,
zoom:12,
scrollwheel:false,
draggable:false,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("googleMap"),mapProp);
var marker = new google.maps.Marker({
position:myCenter,
});
marker.setMap(map);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>