|
|
|
14년 전
|
조회 674
|
|
|
|
14년 전
|
조회 762
|
|
|
|
14년 전
|
조회 673
|
|
|
|
14년 전
|
조회 4,756
|
|
|
|
14년 전
|
조회 648
|
|
|
|
14년 전
|
조회 5,032
|
|
|
|
14년 전
|
조회 1,343
|
|
|
|
14년 전
|
조회 1,143
|
|
|
|
14년 전
|
조회 618
|
|
|
|
14년 전
|
조회 801
|
|
|
|
14년 전
|
조회 1,319
|
|
|
|
14년 전
|
조회 780
|
|
|
|
14년 전
|
조회 1,452
|
|
|
|
14년 전
|
조회 963
|
|
|
|
14년 전
|
조회 791
|
|
|
|
14년 전
|
조회 891
|
|
|
|
14년 전
|
조회 2,972
|
|
|
|
14년 전
|
조회 701
|
|
|
|
14년 전
|
조회 1,262
|
|
|
|
14년 전
|
조회 903
|
|
|
|
14년 전
|
조회 849
|
|
|
|
14년 전
|
조회 749
|
|
|
|
14년 전
|
조회 3,389
|
|
|
|
14년 전
|
조회 1,317
|
|
|
|
14년 전
|
조회 742
|
|
|
|
14년 전
|
조회 823
|
|
|
|
14년 전
|
조회 800
|
|
|
|
14년 전
|
조회 904
|
|
|
|
14년 전
|
조회 675
|
|
|
|
14년 전
|
조회 739
|
|
|
|
14년 전
|
조회 1,402
|
|
|
|
14년 전
|
조회 3,253
|
|
|
|
14년 전
|
조회 1,678
|
|
|
|
14년 전
|
조회 774
|
|
|
|
14년 전
|
조회 717
|
|
|
|
14년 전
|
조회 842
|
|
|
|
14년 전
|
조회 724
|
|
|
|
14년 전
|
조회 823
|
|
|
|
14년 전
|
조회 933
|
|
|
|
14년 전
|
조회 736
|
|
|
|
14년 전
|
조회 3,229
|
|
|
|
14년 전
|
조회 3,129
|
|
|
|
14년 전
|
조회 921
|
|
|
|
14년 전
|
조회 1,433
|
|
|
|
14년 전
|
조회 1,055
|
|
|
|
14년 전
|
조회 906
|
|
|
|
14년 전
|
조회 3,454
|
|
|
|
14년 전
|
조회 2,446
|
|
|
|
14년 전
|
조회 2,046
|
|
|
|
14년 전
|
조회 1,965
|
|
|
|
14년 전
|
조회 736
|
|
|
|
14년 전
|
조회 1,497
|
|
|
|
14년 전
|
조회 747
|
|
|
|
14년 전
|
조회 642
|
|
|
|
14년 전
|
조회 682
|
|
|
|
14년 전
|
조회 1,100
|
|
|
|
14년 전
|
조회 1,131
|
|
|
|
14년 전
|
조회 1,716
|
|
|
|
14년 전
|
조회 871
|
|
|
|
14년 전
|
조회 1,094
|
|
|
|
14년 전
|
조회 1,262
|
|
|
|
14년 전
|
조회 1,258
|
|
|
|
14년 전
|
조회 604
|
|
|
|
14년 전
|
조회 1,788
|
|
|
|
14년 전
|
조회 952
|
|
|
|
14년 전
|
조회 1,270
|
|
|
|
14년 전
|
조회 1,044
|
|
|
|
14년 전
|
조회 1,362
|
|
|
|
14년 전
|
조회 1,475
|
|
|
|
14년 전
|
조회 906
|
|
|
|
14년 전
|
조회 1,128
|
|
|
|
14년 전
|
조회 1,398
|
|
|
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 844
|
|
|
|
14년 전
|
조회 995
|
|
|
|
14년 전
|
조회 1,715
|
|
|
|
14년 전
|
조회 2,808
|
|
|
|
14년 전
|
조회 2,067
|
|
|
|
14년 전
|
조회 2,121
|
|
|
|
14년 전
|
조회 1,532
|
|
|
|
14년 전
|
조회 1,342
|
|
|
|
14년 전
|
조회 1,242
|
|
|
|
14년 전
|
조회 1,023
|
|
|
|
14년 전
|
조회 485
|
|
|
|
14년 전
|
조회 1,403
|
|
|
|
14년 전
|
조회 4,490
|
|
|
|
14년 전
|
조회 1,370
|
|
|
|
14년 전
|
조회 1,146
|
|
|
|
14년 전
|
조회 634
|
|
|
|
14년 전
|
조회 870
|
|
|
|
14년 전
|
조회 685
|
|
|
|
14년 전
|
조회 581
|
|
|
|
14년 전
|
조회 653
|
|
|
|
14년 전
|
조회 632
|
|
|
|
14년 전
|
조회 581
|
|
|
|
14년 전
|
조회 1,453
|
|
|
|
14년 전
|
조회 773
|
|
|
|
14년 전
|
조회 632
|
|
|
|
14년 전
|
조회 602
|
|
|
|
14년 전
|
조회 650
|
댓글 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