|
|
|
14년 전
|
조회 688
|
|
|
|
14년 전
|
조회 772
|
|
|
|
14년 전
|
조회 697
|
|
|
|
14년 전
|
조회 4,764
|
|
|
|
14년 전
|
조회 659
|
|
|
|
14년 전
|
조회 5,042
|
|
|
|
14년 전
|
조회 1,355
|
|
|
|
14년 전
|
조회 1,154
|
|
|
|
14년 전
|
조회 628
|
|
|
|
14년 전
|
조회 811
|
|
|
|
14년 전
|
조회 1,328
|
|
|
|
14년 전
|
조회 797
|
|
|
|
14년 전
|
조회 1,460
|
|
|
|
14년 전
|
조회 973
|
|
|
|
14년 전
|
조회 802
|
|
|
|
14년 전
|
조회 906
|
|
|
|
14년 전
|
조회 2,980
|
|
|
|
14년 전
|
조회 711
|
|
|
|
14년 전
|
조회 1,273
|
|
|
|
14년 전
|
조회 914
|
|
|
|
14년 전
|
조회 855
|
|
|
|
14년 전
|
조회 755
|
|
|
|
14년 전
|
조회 3,403
|
|
|
|
14년 전
|
조회 1,327
|
|
|
|
14년 전
|
조회 750
|
|
|
|
14년 전
|
조회 834
|
|
|
|
14년 전
|
조회 812
|
|
|
|
14년 전
|
조회 918
|
|
|
|
14년 전
|
조회 683
|
|
|
|
14년 전
|
조회 749
|
|
|
|
14년 전
|
조회 1,409
|
|
|
|
14년 전
|
조회 3,268
|
|
|
|
14년 전
|
조회 1,684
|
|
|
|
14년 전
|
조회 788
|
|
|
|
14년 전
|
조회 729
|
|
|
|
14년 전
|
조회 854
|
|
|
|
14년 전
|
조회 733
|
|
|
|
14년 전
|
조회 832
|
|
|
|
14년 전
|
조회 944
|
|
|
|
14년 전
|
조회 750
|
|
|
|
14년 전
|
조회 3,238
|
|
|
|
14년 전
|
조회 3,141
|
|
|
|
14년 전
|
조회 933
|
|
|
|
14년 전
|
조회 1,444
|
|
|
|
14년 전
|
조회 1,069
|
|
|
|
14년 전
|
조회 921
|
|
|
|
14년 전
|
조회 3,468
|
|
|
|
14년 전
|
조회 2,455
|
|
|
|
14년 전
|
조회 2,057
|
|
|
|
14년 전
|
조회 1,980
|
|
|
|
14년 전
|
조회 747
|
|
|
|
14년 전
|
조회 1,514
|
|
|
|
14년 전
|
조회 761
|
|
|
|
14년 전
|
조회 662
|
|
|
|
14년 전
|
조회 696
|
|
|
|
14년 전
|
조회 1,112
|
|
|
|
14년 전
|
조회 1,138
|
|
|
|
14년 전
|
조회 1,726
|
|
|
|
14년 전
|
조회 883
|
|
|
|
14년 전
|
조회 1,102
|
|
|
|
14년 전
|
조회 1,271
|
|
|
|
14년 전
|
조회 1,266
|
|
|
|
14년 전
|
조회 613
|
|
|
|
14년 전
|
조회 1,802
|
|
|
|
14년 전
|
조회 966
|
|
|
|
14년 전
|
조회 1,283
|
|
|
|
14년 전
|
조회 1,053
|
|
|
|
14년 전
|
조회 1,374
|
|
|
|
14년 전
|
조회 1,482
|
|
|
|
14년 전
|
조회 919
|
|
|
|
14년 전
|
조회 1,143
|
|
|
|
14년 전
|
조회 1,408
|
|
|
|
14년 전
|
조회 1,493
|
|
|
|
14년 전
|
조회 862
|
|
|
|
14년 전
|
조회 1,010
|
|
|
|
14년 전
|
조회 1,724
|
|
|
|
14년 전
|
조회 2,823
|
|
|
|
14년 전
|
조회 2,078
|
|
|
|
14년 전
|
조회 2,131
|
|
|
|
14년 전
|
조회 1,547
|
|
|
|
14년 전
|
조회 1,351
|
|
|
|
14년 전
|
조회 1,258
|
|
|
|
14년 전
|
조회 1,030
|
|
|
|
14년 전
|
조회 493
|
|
|
|
14년 전
|
조회 1,415
|
|
|
|
14년 전
|
조회 4,505
|
|
|
|
14년 전
|
조회 1,385
|
|
|
|
14년 전
|
조회 1,163
|
|
|
|
14년 전
|
조회 649
|
|
|
|
14년 전
|
조회 882
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 591
|
|
|
|
14년 전
|
조회 663
|
|
|
|
14년 전
|
조회 641
|
|
|
|
14년 전
|
조회 597
|
|
|
|
14년 전
|
조회 1,464
|
|
|
|
14년 전
|
조회 778
|
|
|
|
14년 전
|
조회 643
|
|
|
|
14년 전
|
조회 604
|
|
|
|
14년 전
|
조회 659
|
댓글 6개
var html = 'Opening marker #' + n;
// Place markers on map randomly.
var randX = Math.random();
var randY = Math.random();
randX *= (randX * 1000000) % 2 == 0 ? 1 : -1;
randY *= (randY * 1000000) % 2 == 0 ? 1 : -1;
var randLatLng = new google.maps.LatLng(
center.lat() + (randX * 0.1),
center.lng() + (randY * 0.1));
var marker = new google.maps.Marker({
map: Gnu.map,
title: 'Marker #' + n,
position: randLatLng,
draggable: true
});
Gnu.markers.push(marker);
// Create marker info window.
var infoWindow = new google.maps.InfoWindow({
content: [
'<h3 style="">',
'Marker #' + n,
'</h3>',
'Located at:',
'<div style="font-size: 0.8em;">',
randLatLng.lat() + ', ' + randLatLng.lng(),
'</div>'
].join(''),
size: new google.maps.Size(200, 80)
});
// Add marker click event listener.
google.maps.event.addListener(
marker, 'click', Gnu.openInfoWindow(infoWindow, marker));
// Generate list elements for each marker.
var li = document.createElement('li');
var aSel = document.createElement('a');
aSel.href = 'javascript:void(0);';
aSel.innerHTML = 'Open Marker #' + n;
aSel.onclick = Gnu.generateTriggerCallback(marker, 'click');
li.appendChild(aSel);
ul.appendChild(li);
// Sum up all lat/lng to calculate center all points.
avg.lat += randLatLng.lat();
avg.lng += randLatLng.lng();
}
자바스크립트의 이 부분에서 스킨의 게시판과 연동할려면
<?
for ($i=0; $i<count($list); $i++) {
.........
$lat=$list[$i][wr_2];
$lng=$list[$i][wr_3];
echo("var randLatLng = new google.maps.LatLng($lat, $lng);\n");
.........
}
?>
이런식으로 처리하면 될것도 같은데, 중간에 Infowindows 의 content부분은 어떤식으로 처리를 해야 될지요? 여기세 wr_subject와 wr_4내용을 넣고 싶은데, 어떤식으로 해야 되는지요?
많은 도움되시길..
http://linkma.kr/gpsmap.php