|
|
|
14년 전
|
조회 756
|
|
|
|
14년 전
|
조회 835
|
|
|
|
14년 전
|
조회 749
|
|
|
|
14년 전
|
조회 4,838
|
|
|
|
14년 전
|
조회 724
|
|
|
|
14년 전
|
조회 5,108
|
|
|
|
14년 전
|
조회 1,416
|
|
|
|
14년 전
|
조회 1,233
|
|
|
|
14년 전
|
조회 703
|
|
|
|
14년 전
|
조회 887
|
|
|
|
14년 전
|
조회 1,393
|
|
|
|
14년 전
|
조회 875
|
|
|
|
14년 전
|
조회 1,527
|
|
|
|
14년 전
|
조회 1,047
|
|
|
|
14년 전
|
조회 873
|
|
|
|
14년 전
|
조회 981
|
|
|
|
14년 전
|
조회 3,043
|
|
|
|
14년 전
|
조회 789
|
|
|
|
14년 전
|
조회 1,343
|
|
|
|
14년 전
|
조회 994
|
|
|
|
14년 전
|
조회 925
|
|
|
|
14년 전
|
조회 823
|
|
|
|
14년 전
|
조회 3,477
|
|
|
|
14년 전
|
조회 1,392
|
|
|
|
14년 전
|
조회 823
|
|
|
|
14년 전
|
조회 906
|
|
|
|
14년 전
|
조회 896
|
|
|
|
14년 전
|
조회 980
|
|
|
|
14년 전
|
조회 752
|
|
|
|
14년 전
|
조회 831
|
|
|
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 3,347
|
|
|
|
14년 전
|
조회 1,748
|
|
|
|
14년 전
|
조회 835
|
|
|
|
14년 전
|
조회 811
|
|
|
|
14년 전
|
조회 929
|
|
|
|
14년 전
|
조회 803
|
|
|
|
14년 전
|
조회 905
|
|
|
|
14년 전
|
조회 1,016
|
|
|
|
14년 전
|
조회 821
|
|
|
|
14년 전
|
조회 3,309
|
|
|
|
14년 전
|
조회 3,217
|
|
|
|
14년 전
|
조회 1,003
|
|
|
|
14년 전
|
조회 1,522
|
|
|
|
14년 전
|
조회 1,141
|
|
|
|
14년 전
|
조회 993
|
|
|
|
14년 전
|
조회 3,546
|
|
|
|
14년 전
|
조회 2,524
|
|
|
|
14년 전
|
조회 2,133
|
|
|
|
14년 전
|
조회 2,053
|
|
|
|
14년 전
|
조회 824
|
|
|
|
14년 전
|
조회 1,579
|
|
|
|
14년 전
|
조회 825
|
|
|
|
14년 전
|
조회 741
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 1,195
|
|
|
|
14년 전
|
조회 1,214
|
|
|
|
14년 전
|
조회 1,805
|
|
|
|
14년 전
|
조회 944
|
|
|
|
14년 전
|
조회 1,179
|
|
|
|
14년 전
|
조회 1,351
|
|
|
|
14년 전
|
조회 1,335
|
|
|
|
14년 전
|
조회 698
|
|
|
|
14년 전
|
조회 1,880
|
|
|
|
14년 전
|
조회 1,042
|
|
|
|
14년 전
|
조회 1,352
|
|
|
|
14년 전
|
조회 1,118
|
|
|
|
14년 전
|
조회 1,451
|
|
|
|
14년 전
|
조회 1,562
|
|
|
|
14년 전
|
조회 992
|
|
|
|
14년 전
|
조회 1,222
|
|
|
|
14년 전
|
조회 1,481
|
|
|
|
14년 전
|
조회 1,568
|
|
|
|
14년 전
|
조회 932
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 1,799
|
|
|
|
14년 전
|
조회 2,892
|
|
|
|
14년 전
|
조회 2,136
|
|
|
|
14년 전
|
조회 2,195
|
|
|
|
14년 전
|
조회 1,634
|
|
|
|
14년 전
|
조회 1,427
|
|
|
|
14년 전
|
조회 1,335
|
|
|
|
14년 전
|
조회 1,100
|
|
|
|
14년 전
|
조회 578
|
|
|
|
14년 전
|
조회 1,498
|
|
|
|
14년 전
|
조회 4,571
|
|
|
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 1,230
|
|
|
|
14년 전
|
조회 723
|
|
|
|
14년 전
|
조회 959
|
|
|
|
14년 전
|
조회 766
|
|
|
|
14년 전
|
조회 658
|
|
|
|
14년 전
|
조회 734
|
|
|
|
14년 전
|
조회 718
|
|
|
|
14년 전
|
조회 673
|
|
|
|
14년 전
|
조회 1,545
|
|
|
|
14년 전
|
조회 847
|
|
|
|
14년 전
|
조회 721
|
|
|
|
14년 전
|
조회 677
|
|
|
|
14년 전
|
조회 743
|
댓글 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