グーグルマップが表示されたり、何も表示されない場合があります。 私はいくつかのリンクを検索し、その方法を試しましたが、 どのような解決策ですか? iは、ズームを変更しようとしましたが、それでも コンソールを働いていないことは、このリンクには何のエラーグレーボックスを表示したAPIを追加してGoogleマップが機能しない
<head>
<script src="http://maps.google.com/maps?file=api&v=3&hl=en&key=GOOGLE_GENERATED_API&sensor=true"type="text/javascript"></script>
<script>
function myMap() {
var myCenter = new google.maps.LatLng(31.4856,74.3406);
var mapCanvas = document.getElementById("map");
var mapOptions = {center: myCenter, zoom: 8};
var map = new google.maps.Map(mapCanvas, mapOptions);
var marker = new google.maps.Marker({position:myCenter});
marker.setMap(map);
var infowindow = new google.maps.InfoWindow({
content: "Welcome to Ali Institute of Education"
});
infowindow.open(map,marker);
}
</script>
</head>
<body onload="myMap()">
<?php include '/layout/header.php';?>
<!-- Contact Us Content -->
<div class="container-fluid">
<div id="map" style="width: 800px; height: 400px; overflow:visible;"> </div>
</div>
</body>
おそらく、あなたは最大毎日ロードマップの限界を超えました:https://developers.google.com/maps/documentation/static-maps/usage-limits?hl=es- 419またはちょうど –
@JordiFloresいいえ –