html google map
HTML Google Maps
Google지도를 사용하면 웹 페이지에지도를 표시 할 수 있습니다.
A Basic Web Page
웹 페이지에 Google지도를 추가하는 방법을 보여주기 위해 기본 HTML 페이지를 사용합니다.
Example
<!DOCTYPE html>
<html>
<body>
<h1>My First Google Map</h1>
<div id="map">My map will go here</div>
</body>
<html>
Set the Map Size
지도 크기 설정 :
Example
<div id="map" style="width:400px;height:400px">
Create a Function to Set The Map Properties
이 예는 영국의 런던 중심의 Google지도를 정의합니다.
Example
function myMap() {
var mapOptions = {
center: new google.maps.LatLng(51.5, -0.12),
zoom: 10,
mapTypeId: google.maps.MapTypeId.HYBRID
}
var map = new google.maps.Map(document.getElementById("map"), mapOptions);
}
<!DOCTYPE html>
<html>
<body>
<h1>My First Google Map</h1>
<div id="map" style="width:400px;height:400px;background:yellow"></div>
<script>
function myMap() {
var mapOptions = {
center: new google.maps.LatLng(51.5, -0.12),
zoom: 10,
mapTypeId: google.maps.MapTypeId.HYBRID
}
var map = new google.maps.Map(document.getElementById("map"), mapOptions);
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBu-916DdpKAjTmJNIgngS6HL_kDIKU0aU&callback=myMap"></script>
</body>
</html>
게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 797 | HTML | 8년 전 | 1702 | ||
| 796 | HTML | 8년 전 | 1515 | ||
| 795 | HTML | 8년 전 | 3298 | ||
| 794 | 기타 | 8년 전 | 2244 | ||
| 793 | HTML | 8년 전 | 3747 | ||
| 792 | HTML | 8년 전 | 1850 | ||
| 791 | 반응형 | 9년 전 | 2555 | ||
| 790 | HTML | 9년 전 | 10033 | ||
| 789 | HTML | 9년 전 | 5732 | ||
| 788 | CSS | 9년 전 | 2488 | ||
| 787 | 반응형 | 9년 전 | 3259 | ||
| 786 | 웹접근성 | 9년 전 | 3453 | ||
| 785 | 웹접근성 | 9년 전 | 2378 | ||
| 784 | 기타 | 9년 전 | 2384 | ||
| 783 | CSS | 9년 전 | 2238 | ||
| 782 | CSS | 9년 전 | 2409 | ||
| 781 | CSS | 9년 전 | 3944 | ||
| 780 | 반응형 | 9년 전 | 4298 | ||
| 779 | CSS | 9년 전 | 3144 | ||
| 778 | 반응형 | 9년 전 | 3278 | ||
| 777 | 반응형 | 9년 전 | 7630 | ||
| 776 | CSS | 9년 전 | 4776 | ||
| 775 | CSS | 9년 전 | 5384 | ||
| 774 | CSS | 9년 전 | 4607 | ||
| 773 | 반응형 | 9년 전 | 3594 | ||
| 772 | CSS | 9년 전 | 2984 | ||
| 771 | 웹접근성 | 9년 전 | 3523 | ||
| 770 | HTML | 9년 전 | 3735 | ||
| 769 | HTML | 9년 전 | 2369 | ||
| 768 | 9년 전 | 2394 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기