구글맵 list.skin.php에서 볼수있게 좀 부탁합니다.

· 15년 전 · 1808 · 2

view.skin.php에서는 볼수있는데
리스트에선 볼수가없네요
고수님들 부탁합니다.
------------------------------------------------------


<?
// v1.1 map api http://www.neosoft.co.kr/map/
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
$apikey=$board['bo_1'];
$map_width="640";
$map_height="450";
?>
<style type="text/css">
.write_head { height:30px; text-align:center; color:#8492A0; }
.field { border:1px solid #ccc; }
#map_bg {
 width: <?=$map_width?>;
 margin: 0 5px 0 0;
 border: 3px solid #f1f1f1;
 }
#map_map {
 border: 2px solid #dedede;
 }
</style>

<? if ($view['wr_1'] == "사용") { ?>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=ko"></script>
<script type="text/javascript">
// 구글맵
 var map;
 function initialize() {
  var myLatlng = new google.maps.LatLng(<?=$write['wr_9']?>, <?=$write['wr_10']?>);
  var myOptions = {
   zoom: 16,
   scaleControl: true,

   navigationControl: true,
   navigationControlOptions: {
     style: google.maps.NavigationControlStyle.SMALL,
     position: google.maps.ControlPosition.TOP_RIGHT
   },

   center: myLatlng,
   mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);

  // 리스너 Listener ////////////////////////////////////////////////////
  google.maps.event.addListener(map, 'zoom_changed', function() {
   zoomLevel = map.getZoom();
   if (zoomLevel > 19) {
     map.setZoom(19);
   }  
   if (zoomLevel < 1) {
     map.setZoom(1);
   }  
  });
  
  var marker = new google.maps.Marker({
   position: myLatlng,
   map: map,
   title: "Here"
  });
 }
</script>
<div id="map_canvas" style="width:<?=$map_width?>; height:<?=$map_height?>;"></div>
<? }?>


<script language="JavaScript" src="<?="$g4[path]/js/board.js"?>"></script>
<script language="JavaScript">

 function addLoadEvent(func) {
   var oldonload = window.onload;
   if (typeof window.onload != 'function') {
  window.onload = func;
   } else {
  window.onload = function() {
    if (oldonload) {
   oldonload();
    }
    func();
  }
   }
 }

 function resizeImage(func) {
  resizeBoardImage(<?=(int)$board[bo_image_width] + 40 ?>);
  drawFont();
 }
 addLoadEvent(resizeImage);

//<!-- 구글지도 보기 -->
 addLoadEvent(initialize);
</script>

|

댓글 2개

<?=$write['wr_9']?> => <?=$list[$i][wr_9]?>

즉 write 함수로 선언된 모든 부분을 list[$i] 로 변경
$view['wr_']랑$write['wr_']를 $list[$i][wr_]로 바꾸세요
댓글을 작성하시려면 로그인이 필요합니다. 로그인

자유게시판

+
제목 글쓴이 날짜 조회
15년 전 조회 1,165
15년 전 조회 3,299
15년 전 조회 2,411
15년 전 조회 1,799
15년 전 조회 2,122
15년 전 조회 2,192
15년 전 조회 1,652
15년 전 조회 1,387
15년 전 조회 1,692
15년 전 조회 1,795
15년 전 조회 1,837
15년 전 조회 1,803
15년 전 조회 1,861
15년 전 조회 1,311
15년 전 조회 1,809
15년 전 조회 1,339
15년 전 조회 2,234
15년 전 조회 1,233
15년 전 조회 2,810
15년 전 조회 2,063
15년 전 조회 2,003
15년 전 조회 2,439
15년 전 조회 1,664
15년 전 조회 1,855
15년 전 조회 1,705
15년 전 조회 1,660
15년 전 조회 2,113
15년 전 조회 6,256
15년 전 조회 1,833
15년 전 조회 1,699
🐛 버그신고