묻고답하기

아무리 찾아봐도 해결방법을 모르겠어요.

XE CORE 1.7.5.5 버젼이고요


게시판 메뉴타입 : 외부 페이지


-> 상세설정 -> 외부문서 연결(gido.html)


gido.html

<style type="text/css">

  v\:* { behavior: url(#default#VML); }

  *{margin:0;padding:0}

  li{list-style:none}

  .tabContainer{position:relative;width:100%;margin:20px auto;border:1px solid red}

#tab li a{position:absolute;left:0;display:block;width:50px;height:100px;

color:#fff;background:orange;text-align:center}

#tab li a.on{background:#0099ff}

#tab li a.tabBtn1{top:0}

#tab li a.tabBtn2{top:100px}

#testMap,#tab1{width:600px; height:500px;display:block;

  margin:0 auto;border:1px solid #000}

  </style>


  <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>

   <!-- prevent IE6 flickering -->

  <script type="text/javascript">

   try {document.execCommand('BackgroundImageCache', false, true);} catch(e) {}

  </script>


 

<script type="text/javascript" src="http://openapi.map.naver.com/openapi/naverMap.naver?ver=2.0&key=3432a914715cffacd73d3f06d7e6b912"></script>


 <div class="tabContainer">

<ul id="tab">

<li><a href="#" class="tabBtn1 on">메뉴1</a></li>

<li><a href="#" class="tabBtn2">지도</a></li>

</ul>


<div id="tab1" class="tab" >일반내용페이지</div>

<div id = "testMap" class="tab"></div>

 </div><!-- tabContainer 종료 -->


 <script type="text/javascript">

   var oPoint = new nhn.api.map.LatLng(37.6498086,127.0617673); 

   nhn.api.map.setDefaultPoint('LatLng');

   oMap = new nhn.api.map.Map('testMap', {

      center : oPoint,

      level : 10, // - 초기 줌 레벨은 10이다.

      enableWheelZoom : true,

      enableDragPan : true,

      enableDblClickZoom : false,

      mapMode : 0,

      activateTrafficMap : false,

      activateBicycleMap : false,

      activateRealtyMap : true,

      minMaxLevel : [ 1, 14 ],

      size : new nhn.api.map.Size(500, 400)

   });

   var mapZoom = new nhn.api.map.ZoomControl(); // - 줌 컨트롤 선언

   mapZoom.setPosition({right:10, bottom:10}); // - 줌 컨트롤 위치 지정.

   var trafficButton = new nhn.api.map.TrafficMapBtn(); // - 실시간 교통지도 버튼 선언

trafficButton.setPosition({top:5, right:5}); // - 실시간 교통지도 버튼 위치 지정

mapTypeChangeButton = new nhn.api.map.MapTypeBtn(); // - 지도 타입 버튼 선언

mapTypeChangeButton.setPosition({top:5, left:5}); // - 지도 타입 버튼 위치 지정

    oMap.addControl(mapZoom); // - 줌 컨트롤 추가.

oMap.addControl(mapTypeChangeButton);

oMap.addControl(trafficButton);

   var oSize = new nhn.api.map.Size(28, 37);

   var oOffset = new nhn.api.map.Size(14, 37);

   var oIcon = new nhn.api.map.Icon('http://static.naver.com/maps2/icons/pin_spot2.png', oSize, oOffset);

   // - Draggable Marker 의 경우 Icon 인자는 Sprite Icon이 된다.

   // - 따라서 Sprite Icon 을 사용하기 위해 기본적으로 사용되는 값을 지정한다.

   // - Sprite Icon 을 사용하기 위해서 상세한 내용은 레퍼런스 페이지의 nhn.api.map.SpriteIcon 객체를 참조하면 된다.

   

var oMarker1 = new nhn.api.map.Marker(oIcon, { title : '표시 위치' });  //마커 생성 

oMarker1.setPoint(oPoint); //마커 표시할 좌표 선택

oMap.addOverlay(oMarker1); //마커를 지도위에 표현 

var oLabel1 = new nhn.api.map.MarkerLabel(); // - 마커 라벨 선언. 

oMap.addOverlay(oLabel1); // - 마커 라벨 지도에 추가. 기본은 라벨이 보이지 않는 상태로 추가됨. 

oLabel1.setVisible(true, oMarker1); // 마커 라벨 보이기 

  </script>


  <script type="text/javascript">

jQuery(function($){

$('#testMap').hide()

$('#tab>li>a').eq(0).on('click',function(){

$('.tabContainer .tab').hide()

$('#tab1').show()

$('#tab>li>a').removeClass('on')

$(this).addClass('on')

})


$('#tab>li>a').eq(1).on('click',function(){

$('.tabContainer .tab').hide()

$('#testMap').show()

$('#tab>li>a').removeClass('on')

$(this).addClass('on')

})

})

  </script>





이렇게 해서 올렸는데요.   디폴트 레이아웃에서조차 네이버 맵이 연동이 안되고


맵 틀만 나옵니다.  당연히 키는 제대로 입력했고요


외부 문서가 아니라 레이아웃 자체적으로 코딩해서 올려보면 그때는 잘 나오거든요??


외 이럴까요.

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
마키치노 FTP 관련질문 입니다. [2] file 2014.09.28 by 마키치노
Andyjo 페이지 로딩 지연 문제 해결 좀 도와주세요! file  
니노붐 이사하려고 하는데 500 Internal Server Error 문제 해결 방안 부탁드립니다ㅠㅠ [1] 2014.09.24 by 니노붐
유샤인 엠베드 코드 넣으니 이런 코드가 뒤에 붙는 데 이거 xe가 삽입하는 건가요 아님 바이러스인가요? [2] 2014.09.20 by 유샤인
hj입니다 xe 호스팅이전시에...하는법 [4] 2014.09.09 by BJ람보♡羅仕茹羅小白
jkx08q Opengrapch 애드온 본문 내용 글자수 변경 [2] file 2014.09.05 by jkx08q
대떡 500에러가 떠요 [1] 2014.09.02 by 퍼니엑스이
지룡자 칼라 말머리 넣는 법 알고 싶습니다 [1] file 2014.08.28 by 앙띠2
비누남어 퀵메뉴 넣기 (언제나졸졸) [1] file 2014.08.21 by 몽실아빠
DJKain 에디터를 수정해서 swf 파일을 본문에 넣고싶습니다  
DJKain 본문에 swf 를 삽입하고 싶은데요 [4] 2014.08.17 by DJKain
mr33 이런현상 보신적 있으신분..."index.php_p" <-- 이게 경로에 삽입이 됩니다.. file  
Ragok 작업을 하다가 페이지가 안뜨게 되면 어떻게 해야되나요?? [8] 2014.08.13 by Ragok
쿵푸팬더 http 406 error 질문입니다. [4] 2014.08.13 by 쿵푸팬더
미스터강 에디터 수정팁좀 주실수 주실분 찾습니다.. file  
여름장마oim 스케치북 게시판 댓글 강조형 위치 조절 [2] file 2014.07.31 by 여름장마oim
레드윈드2 XE에 네이버 맵 API 를 올리려고하는데요 [8] 2014.07.28 by 레드윈드2
앤디러브 로그인 글자 수정 방법 부탁드립니다 [2] file 2014.07.27 by 앤디러브
kanbateryu 로그인 레이아웃은 어떻게바꾸나요? [2] file 2014.07.27 by kanbateryu
진짜진짜몰것당ㅜ,ㅜ,ㅜ 메인 메뉴가 안보여요..도와주세요 ㅜ.ㅜ file