에서 작동하지 않습니다하지만 1 초 동안 넣은 다음구글지도 PHP
및
미안
MissingKeyMapError 말해! 뭔가 잘못 됐어. 이 페이지는 Google지도를 올바르게로드하지 못했습니다. 기술 세부 사항은 JavaScript 콘솔을 참조하십시오.
내가 Google지도 자바 스크립트 API 및 웹 브라우저를 사용 (JavaScript)를 .Hear 내 코드입니다 :
<script src='https://maps.googleapis.com/maps/api/js?key=AIzaSyDNi7fQreXQ_AvjDEbMBGtBo2XoP5QkxRs'></script>
<div style='overflow:hidden;height:440px;width:700px;'>
<div id='gmap_canvas' style='height:440px;width:700px;'></div>
<style>#gmap_canvas img {
max-width: none !important;
background: none !important
} </style>
</div>
<script type='text/javascript'>
function init_map() {
var myOptions = {
zoom: 14,
center: new google.maps.LatLng(22.3475365, 91.81233240000006),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('gmap_canvas'), myOptions);
marker = new google.maps.Marker({
map: map,
position: new google.maps.LatLng(22.3475365, 91.81233240000006)
});
infowindow = new google.maps.InfoWindow({content: '<strong>University of Chittagong</strong><br>Chittagong , Bangladesh<br>'});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map, marker);
});
infowindow.open(map, marker);
}
google.maps.event.addDomListener(window, 'load', init_map);
</script>
</head>
이 내 전체 코드입니다. 내 프로젝트를 도와주세요.
잘못된 Google지도 API 키 –
@Vishnu Bhadoriya 잘못된 Google지도 API 키는 무엇을 의미합니까? – user3291513
PHP와 관련이 없습니다. – geocodezip