Google지도 자습서 https://developers.google.com/maps/tutorials/fundamentals/adding-a-google-map 에 따라 Google지도 apis로 놀고 있습니다. 그러나 다음 코드를 사용하면지도가 내 HTML 코드 예에 표시되지 않습니다.삽입 된 Google지도가 HTML 페이지에 표시되지 않습니다.
제안 사항?
감사
<html>
<head>
<style>
#map_canvas {
width: 500px;
height: 400px;
}
</style>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
function initialize() {
var map_canvas = document.getElementById('map_canvas');
var map_options = {
center: new google.maps.LatLng(44.5403, -78.5463),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(map_canvas, map_options)
}
google.maps.event.addDomListener(window, ‘load’, initialize);
</script>
</head>
<body>
<div id="map_canvas"></div>
</body>
</html>
[구글지도 API 예, 작업 나에게 빈 화면을 제공하지]의 중복 가능성 (http://stackoverflow.com/questions/18196229/google-maps-api-example-not-working -giving-me-blank-screen) – geocodezip