-1
임과 같아야 웹 페이지에서 작업 : https://imgur.com/a/eW3gKGoogle Maps API를 부트 스트랩 그리드 오버레이에 어떻게 삽입 할 수 있습니까?
내가 부트 스트랩 그리드를 사용하는 것을 시도하고 있지만지도는 단지 크기 조정과 오른쪽 열 아래에 나타나이 작동하지 않습니다하지 않습니다.
HTML
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="~/css/custom.css">
<script src="~/js/googleMap.js"></script>
</head>
<body>
<h3>My Google Maps Demo</h3>
<div class="row">
<div class="col-md-6">Google Maps</div>
</div>
<div class="row">
<div class="col-md-6">Contact Information</div>
<div class="col-md-6">
<div id="map"></div>
</div>
</div>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCQKR41AqiPXn-2WfLS-giuXPLWpnFxLjk&callback=initMap"></script>
</body>
</html>
CSS
#map {
width: 100%;
height: 400px;
background-color: grey;
}
JS 내가 Google지도는 모형에 따라 부트 스트랩 그리드와 함께 사용할 수있는 방법
function initMap() {
var uluru = { lat: 51.957244, lng: 4.570751 };
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 15,
center: uluru
});
var marker = new google.maps.Marker({
position: uluru,
map: map
});
}
?