d

구글 맵 독도 표기 되도록.

<script src="https://maps.google.com/maps/api/js?v=3&key=키값&sensor=false®ion=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,579
웹서버 6년 전 조회 3,413
기타 6년 전 조회 2,320
PHP 6년 전 조회 3,825
기타 6년 전 조회 2,386
웹서버 6년 전 조회 3,132
node.js 6년 전 조회 2,461
PHP 6년 전 조회 3,948
기타 6년 전 조회 2,500
JavaScript 6년 전 조회 2,773
웹서버 6년 전 조회 4,509
JavaScript 6년 전 조회 3,024
JavaScript 6년 전 조회 2,228
JavaScript 6년 전 조회 2,317
JavaScript 6년 전 조회 2,361
PHP 6년 전 조회 2,373
기타 6년 전 조회 3,224
JavaScript
[JavaScript]
6년 전 조회 2,361
JavaScript 6년 전 조회 2,561
jQuery 6년 전 조회 2,371
PHP 6년 전 조회 3,019
기타 6년 전 조회 2,867
PHP 6년 전 조회 4,969
기타 6년 전 조회 2,383
정규표현식 6년 전 조회 2,622
정규표현식 6년 전 조회 2,980
웹서버 6년 전 조회 4,469
PHP 6년 전 조회 2,824
PHP 6년 전 조회 3,484
MySQL 6년 전 조회 4,426