|
|
|
14년 전
|
조회 584
|
|
|
|
14년 전
|
조회 671
|
|
|
|
14년 전
|
조회 584
|
|
|
|
14년 전
|
조회 4,660
|
|
|
|
14년 전
|
조회 547
|
|
|
|
14년 전
|
조회 4,938
|
|
|
|
14년 전
|
조회 1,266
|
|
|
|
14년 전
|
조회 1,061
|
|
|
|
14년 전
|
조회 537
|
|
|
|
14년 전
|
조회 709
|
|
|
|
14년 전
|
조회 1,228
|
|
|
|
14년 전
|
조회 702
|
|
|
|
14년 전
|
조회 1,363
|
|
|
|
14년 전
|
조회 876
|
|
|
|
14년 전
|
조회 726
|
|
|
|
14년 전
|
조회 795
|
|
|
|
14년 전
|
조회 2,905
|
|
|
|
14년 전
|
조회 614
|
|
|
|
14년 전
|
조회 1,173
|
|
|
|
14년 전
|
조회 811
|
|
|
|
14년 전
|
조회 755
|
|
|
|
14년 전
|
조회 669
|
|
|
|
14년 전
|
조회 3,303
|
|
|
|
14년 전
|
조회 1,222
|
|
|
|
14년 전
|
조회 655
|
|
|
|
14년 전
|
조회 731
|
|
|
|
14년 전
|
조회 715
|
|
|
|
14년 전
|
조회 810
|
|
|
|
14년 전
|
조회 575
|
|
|
|
14년 전
|
조회 652
|
|
|
|
14년 전
|
조회 1,309
|
|
|
|
14년 전
|
조회 3,173
|
|
|
|
14년 전
|
조회 1,580
|
|
|
|
14년 전
|
조회 690
|
|
|
|
14년 전
|
조회 627
|
|
|
|
14년 전
|
조회 760
|
|
|
|
14년 전
|
조회 632
|
|
|
|
14년 전
|
조회 727
|
|
|
|
14년 전
|
조회 840
|
|
|
|
14년 전
|
조회 650
|
|
|
|
14년 전
|
조회 3,130
|
|
|
|
14년 전
|
조회 3,045
|
|
|
|
14년 전
|
조회 844
|
|
|
|
14년 전
|
조회 1,344
|
|
|
|
14년 전
|
조회 967
|
|
|
|
14년 전
|
조회 817
|
|
|
|
14년 전
|
조회 3,373
|
|
|
|
14년 전
|
조회 2,373
|
|
|
|
14년 전
|
조회 1,962
|
|
|
|
14년 전
|
조회 1,884
|
|
|
|
14년 전
|
조회 653
|
|
|
|
14년 전
|
조회 1,412
|
|
|
|
14년 전
|
조회 667
|
|
|
|
14년 전
|
조회 573
|
|
|
|
14년 전
|
조회 604
|
|
|
|
14년 전
|
조회 1,011
|
|
|
|
14년 전
|
조회 1,049
|
|
|
|
14년 전
|
조회 1,633
|
|
|
|
14년 전
|
조회 799
|
|
|
|
14년 전
|
조회 1,009
|
|
|
|
14년 전
|
조회 1,176
|
|
|
|
14년 전
|
조회 1,172
|
|
|
|
14년 전
|
조회 529
|
|
|
|
14년 전
|
조회 1,708
|
|
|
|
14년 전
|
조회 883
|
|
|
|
14년 전
|
조회 1,182
|
|
|
|
14년 전
|
조회 961
|
|
|
|
14년 전
|
조회 1,285
|
|
|
|
14년 전
|
조회 1,400
|
|
|
|
14년 전
|
조회 822
|
|
|
|
14년 전
|
조회 1,043
|
|
|
|
14년 전
|
조회 1,326
|
|
|
|
14년 전
|
조회 1,397
|
|
|
|
14년 전
|
조회 774
|
|
|
|
14년 전
|
조회 920
|
|
|
|
14년 전
|
조회 1,634
|
|
|
|
14년 전
|
조회 2,733
|
|
|
|
14년 전
|
조회 1,988
|
|
|
|
14년 전
|
조회 2,048
|
|
|
|
14년 전
|
조회 1,450
|
|
|
|
14년 전
|
조회 1,260
|
|
|
|
14년 전
|
조회 1,160
|
|
|
|
14년 전
|
조회 940
|
|
|
|
14년 전
|
조회 410
|
|
|
|
14년 전
|
조회 1,320
|
|
|
|
14년 전
|
조회 4,426
|
|
|
|
14년 전
|
조회 1,296
|
|
|
|
14년 전
|
조회 1,061
|
|
|
|
14년 전
|
조회 561
|
|
|
|
14년 전
|
조회 786
|
|
|
|
14년 전
|
조회 612
|
|
|
|
14년 전
|
조회 497
|
|
|
|
14년 전
|
조회 574
|
|
|
|
14년 전
|
조회 558
|
|
|
|
14년 전
|
조회 498
|
|
|
|
14년 전
|
조회 1,371
|
|
|
|
14년 전
|
조회 692
|
|
|
|
14년 전
|
조회 547
|
|
|
|
14년 전
|
조회 519
|
|
|
|
14년 전
|
조회 577
|
댓글 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