d

구글 맵 독도 표기 되도록.

<script src="https://maps.google.com/maps/api/js?v=3&key=키값&sensor=false&region=KR"></script> 
                                    <script> 
                                    function initialize() { 

                                      var Y_point        = "36.231352";    // lat 값 
                                      var X_point        = "127.213804";  // lng 값 

                                      var zoomLevel      = 15;  // 첫 로딩시 보일 지도의 확대 레벨 

                                      var markerTitle    = "좋은산업";  // 현재 위치 마커에 마우스를 올렸을때 나타나는 이름 
                                      var markerMaxWidth = 400;  // 마커를 클릭했을때 나타나는 말풍선의 최대 크기 

                                    var contentString = '<div style="overflow:hidden;">'+markerTitle+'</div>'; 
                                      var myLatlng = new google.maps.LatLng(Y_point, X_point); 
                                      var mapOptions = { 
                                        zoom: zoomLevel, 
                                        center: myLatlng, 
                                        mapTypeId: google.maps.MapTypeId.ROADMAP 
                                      } 
                                      var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions); 

                                      var marker = new google.maps.Marker({ 
                                        position: myLatlng, 
                                        map: map, 
                                        draggable:true, 
                                        animation: google.maps.Animation.DROP, 
                                        title: markerTitle 
                                      }); 

                                      var infowindow = new google.maps.InfoWindow({ 
                                        content: contentString, 
                                        maxWidth: markerMaxWidth 
                                      }); 
                                      infowindow.open(map, marker); 

                                      google.maps.event.addListener(marker, 'click', function() { 
                                        infowindow.open(map, marker); 
                                      }); 

                                    } 

                                    google.maps.event.addDomListener(window, 'load', initialize); 
                                    </script> 


                                    <div id="map_canvas"style="width:706px; height:393px;border:1px solid #888;"></div> 

|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

개발자팁

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
기타 6년 전 조회 9,228
웹서버 6년 전 조회 3,149
기타 6년 전 조회 2,097
PHP 6년 전 조회 3,574
기타 6년 전 조회 2,150
웹서버 6년 전 조회 2,854
node.js 6년 전 조회 2,198
PHP 6년 전 조회 3,714
기타 6년 전 조회 2,282
JavaScript 6년 전 조회 2,543
웹서버 6년 전 조회 4,238
JavaScript 6년 전 조회 2,817
JavaScript 6년 전 조회 1,966
JavaScript 6년 전 조회 2,079
JavaScript 6년 전 조회 2,160
PHP 6년 전 조회 2,156
기타 6년 전 조회 2,971
JavaScript
[JavaScript]
6년 전 조회 2,119
JavaScript 6년 전 조회 2,314
jQuery 6년 전 조회 2,140
PHP 6년 전 조회 2,794
기타 6년 전 조회 2,635
PHP 6년 전 조회 4,713
기타 6년 전 조회 2,151
정규표현식 6년 전 조회 2,374
정규표현식 6년 전 조회 2,732
웹서버 6년 전 조회 4,203
PHP 6년 전 조회 2,588
PHP 6년 전 조회 3,244
MySQL 6년 전 조회 4,195
🐛 버그신고