Jump to content

사이트 등록했는데 자꾸 API 인증 실패 화면이 지도에 뜹니다.


Recommended Posts

Posted

                        <div id="map" style="width:90%;height:360px;margin:0 auto 100px;"></div>

                        <script src="https://oapi.map.naver.com/openapi/v3/maps.js?ncpClientId=ssirtbhxv8"></script>

                        <script>

                        var position = new naver.maps.LatLng(37.5665,126.9780);

                        var map = new naver.maps.Map('map',{
                            center: position,
                            zoom:15
                        });

                        var marker = new naver.maps.Marker({
                            position: position,
                            map: map
                        });

                        var infoWindow = new naver.maps.InfoWindow({
                            content: '<div style="padding:10px;font-size:14px;">(주)원테크엔지니어링</div>'
                        });

                        infoWindow.open(map, marker);

                        </script>

예를들어 등록 사이트 : https://sample.com/  https://sample.com
코드 구동 디렉토리  https://sample.com/map01

image.png.1cce97eae5e9fa2dff191ff9f349cad4.png

게시글 및 댓글을 작성하려면 로그인 해주세요.



로그인
×
×
  • Create New...