|
|
|
14년 전
|
조회 596
|
|
|
|
14년 전
|
조회 682
|
|
|
|
14년 전
|
조회 591
|
|
|
|
14년 전
|
조회 4,673
|
|
|
|
14년 전
|
조회 561
|
|
|
|
14년 전
|
조회 4,949
|
|
|
|
14년 전
|
조회 1,275
|
|
|
|
14년 전
|
조회 1,073
|
|
|
|
14년 전
|
조회 548
|
|
|
|
14년 전
|
조회 723
|
|
|
|
14년 전
|
조회 1,242
|
|
|
|
14년 전
|
조회 713
|
|
|
|
14년 전
|
조회 1,374
|
|
|
|
14년 전
|
조회 885
|
|
|
|
14년 전
|
조회 733
|
|
|
|
14년 전
|
조회 807
|
|
|
|
14년 전
|
조회 2,913
|
|
|
|
14년 전
|
조회 627
|
|
|
|
14년 전
|
조회 1,185
|
|
|
|
14년 전
|
조회 824
|
|
|
|
14년 전
|
조회 766
|
|
|
|
14년 전
|
조회 679
|
|
|
|
14년 전
|
조회 3,316
|
|
|
|
14년 전
|
조회 1,233
|
|
|
|
14년 전
|
조회 668
|
|
|
|
14년 전
|
조회 743
|
|
|
|
14년 전
|
조회 727
|
|
|
|
14년 전
|
조회 824
|
|
|
|
14년 전
|
조회 585
|
|
|
|
14년 전
|
조회 663
|
|
|
|
14년 전
|
조회 1,321
|
|
|
|
14년 전
|
조회 3,186
|
|
|
|
14년 전
|
조회 1,591
|
|
|
|
14년 전
|
조회 698
|
|
|
|
14년 전
|
조회 643
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 643
|
|
|
|
14년 전
|
조회 740
|
|
|
|
14년 전
|
조회 854
|
|
|
|
14년 전
|
조회 660
|
|
|
|
14년 전
|
조회 3,146
|
|
|
|
14년 전
|
조회 3,057
|
|
|
|
14년 전
|
조회 854
|
|
|
|
14년 전
|
조회 1,359
|
|
|
|
14년 전
|
조회 979
|
|
|
|
14년 전
|
조회 832
|
|
|
|
14년 전
|
조회 3,385
|
|
|
|
14년 전
|
조회 2,385
|
|
|
|
14년 전
|
조회 1,974
|
|
|
|
14년 전
|
조회 1,893
|
|
|
|
14년 전
|
조회 663
|
|
|
|
14년 전
|
조회 1,424
|
|
|
|
14년 전
|
조회 676
|
|
|
|
14년 전
|
조회 584
|
|
|
|
14년 전
|
조회 613
|
|
|
|
14년 전
|
조회 1,025
|
|
|
|
14년 전
|
조회 1,058
|
|
|
|
14년 전
|
조회 1,644
|
|
|
|
14년 전
|
조회 811
|
|
|
|
14년 전
|
조회 1,023
|
|
|
|
14년 전
|
조회 1,186
|
|
|
|
14년 전
|
조회 1,182
|
|
|
|
14년 전
|
조회 541
|
|
|
|
14년 전
|
조회 1,718
|
|
|
|
14년 전
|
조회 891
|
|
|
|
14년 전
|
조회 1,193
|
|
|
|
14년 전
|
조회 970
|
|
|
|
14년 전
|
조회 1,296
|
|
|
|
14년 전
|
조회 1,409
|
|
|
|
14년 전
|
조회 834
|
|
|
|
14년 전
|
조회 1,056
|
|
|
|
14년 전
|
조회 1,336
|
|
|
|
14년 전
|
조회 1,405
|
|
|
|
14년 전
|
조회 779
|
|
|
|
14년 전
|
조회 931
|
|
|
|
14년 전
|
조회 1,642
|
|
|
|
14년 전
|
조회 2,745
|
|
|
|
14년 전
|
조회 1,998
|
|
|
|
14년 전
|
조회 2,060
|
|
|
|
14년 전
|
조회 1,459
|
|
|
|
14년 전
|
조회 1,272
|
|
|
|
14년 전
|
조회 1,172
|
|
|
|
14년 전
|
조회 949
|
|
|
|
14년 전
|
조회 420
|
|
|
|
14년 전
|
조회 1,331
|
|
|
|
14년 전
|
조회 4,435
|
|
|
|
14년 전
|
조회 1,308
|
|
|
|
14년 전
|
조회 1,073
|
|
|
|
14년 전
|
조회 568
|
|
|
|
14년 전
|
조회 800
|
|
|
|
14년 전
|
조회 622
|
|
|
|
14년 전
|
조회 505
|
|
|
|
14년 전
|
조회 583
|
|
|
|
14년 전
|
조회 568
|
|
|
|
14년 전
|
조회 507
|
|
|
|
14년 전
|
조회 1,382
|
|
|
|
14년 전
|
조회 705
|
|
|
|
14년 전
|
조회 558
|
|
|
|
14년 전
|
조회 534
|
|
|
|
14년 전
|
조회 590
|
댓글 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