야후 지도 api ... ㅠㅠ

· 17년 전 · 1515
<?php
$latitude = "$wr_1"; //위도
$longitude = "$wr_2"; //경도
?>
<html>
<head>
<script type="text/javascript" src="http://kr.open.gugi.yahoo.com/Client/AjaxMap.php?v=3.7&appid=key"></script>

<style type="text/css">
#map{
height: 300px;
width: 640px;
}
</style>

</head>
<body>

<div id="map"></div>
<script type="text/javascript">
// Create a map object
var map = new YMap(document.getElementById('map'));

function startMap(){

// Add map type control
map.addTypeControl();
// Add map zoom (long) control
map.addZoomLong();
// Add the Pan Control
map.addPanControl();

var center_point = new YGeoPoint(<?php $latitude?>,<?php echo $longitude?>);
map.drawZoomAndCenter(center_point,3);
var newMarker= new YMarker(center_point);
newMarker.addAutoExpand("777");
map.addOverlay(newMarker);


}

window.onload = startMap;
</script>
</body>
</html>
일단 제가 하고픈건 위도와 경도값을 입력하면 지도로 표시가 되게..
이걸 게시판으로 불러와서 각게시글마다. 각각의 지도가 나오게 할려고 합니다.
위도와 경도를 숫자로 바꾸면 잘나오는데요.
입력값을 받아서 표현할려니 되지 않네요..
view_skin.php 안에서
<?
//지도출력
include ("$board_skin_path/1.php");
?>
이런식의 include 도 적용이 되지 않습니다.
야후 지도 사용하신분 있으시면 도와 주세요^^

<iframe id='map' src="<? $g4[path]?>/skin/board/basic/1.php" frameborder=0 width=650 height="650" scrolling="auto"></iframe>

이런식으로 불러오는건 가능한데.. 입력값(경도와 위도 )가 적용되지 않네요.. ㅠㅠ
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
17년 전 조회 1,746
17년 전 조회 1,511
17년 전 조회 1,525
17년 전 조회 1,544
17년 전 조회 1,573
17년 전 조회 1,533
17년 전 조회 1,266
17년 전 조회 1,518
17년 전 조회 1,694
17년 전 조회 1,516
17년 전 조회 1,491
17년 전 조회 1,689
17년 전 조회 1,534
17년 전 조회 1,583
17년 전 조회 1,647
17년 전 조회 1,508
17년 전 조회 1,872
17년 전 조회 1,659
17년 전 조회 1,261
17년 전 조회 2,028
🐛 버그신고