|
|
|
14년 전
|
조회 729
|
|
|
|
14년 전
|
조회 815
|
|
|
|
14년 전
|
조회 720
|
|
|
|
14년 전
|
조회 4,801
|
|
|
|
14년 전
|
조회 701
|
|
|
|
14년 전
|
조회 5,083
|
|
|
|
14년 전
|
조회 1,396
|
|
|
|
14년 전
|
조회 1,195
|
|
|
|
14년 전
|
조회 678
|
|
|
|
14년 전
|
조회 867
|
|
|
|
14년 전
|
조회 1,374
|
|
|
|
14년 전
|
조회 847
|
|
|
|
14년 전
|
조회 1,495
|
|
|
|
14년 전
|
조회 1,022
|
|
|
|
14년 전
|
조회 852
|
|
|
|
14년 전
|
조회 945
|
|
|
|
14년 전
|
조회 3,017
|
|
|
|
14년 전
|
조회 753
|
|
|
|
14년 전
|
조회 1,323
|
|
|
|
14년 전
|
조회 957
|
|
|
|
14년 전
|
조회 888
|
|
|
|
14년 전
|
조회 806
|
|
|
|
14년 전
|
조회 3,455
|
|
|
|
14년 전
|
조회 1,365
|
|
|
|
14년 전
|
조회 797
|
|
|
|
14년 전
|
조회 867
|
|
|
|
14년 전
|
조회 855
|
|
|
|
14년 전
|
조회 957
|
|
|
|
14년 전
|
조회 721
|
|
|
|
14년 전
|
조회 792
|
|
|
|
14년 전
|
조회 1,448
|
|
|
|
14년 전
|
조회 3,313
|
|
|
|
14년 전
|
조회 1,717
|
|
|
|
14년 전
|
조회 811
|
|
|
|
14년 전
|
조회 780
|
|
|
|
14년 전
|
조회 903
|
|
|
|
14년 전
|
조회 767
|
|
|
|
14년 전
|
조회 871
|
|
|
|
14년 전
|
조회 993
|
|
|
|
14년 전
|
조회 796
|
|
|
|
14년 전
|
조회 3,288
|
|
|
|
14년 전
|
조회 3,195
|
|
|
|
14년 전
|
조회 982
|
|
|
|
14년 전
|
조회 1,494
|
|
|
|
14년 전
|
조회 1,120
|
|
|
|
14년 전
|
조회 964
|
|
|
|
14년 전
|
조회 3,517
|
|
|
|
14년 전
|
조회 2,508
|
|
|
|
14년 전
|
조회 2,107
|
|
|
|
14년 전
|
조회 2,024
|
|
|
|
14년 전
|
조회 790
|
|
|
|
14년 전
|
조회 1,558
|
|
|
|
14년 전
|
조회 795
|
|
|
|
14년 전
|
조회 705
|
|
|
|
14년 전
|
조회 739
|
|
|
|
14년 전
|
조회 1,156
|
|
|
|
14년 전
|
조회 1,186
|
|
|
|
14년 전
|
조회 1,766
|
|
|
|
14년 전
|
조회 919
|
|
|
|
14년 전
|
조회 1,143
|
|
|
|
14년 전
|
조회 1,316
|
|
|
|
14년 전
|
조회 1,312
|
|
|
|
14년 전
|
조회 665
|
|
|
|
14년 전
|
조회 1,844
|
|
|
|
14년 전
|
조회 1,012
|
|
|
|
14년 전
|
조회 1,319
|
|
|
|
14년 전
|
조회 1,098
|
|
|
|
14년 전
|
조회 1,418
|
|
|
|
14년 전
|
조회 1,533
|
|
|
|
14년 전
|
조회 966
|
|
|
|
14년 전
|
조회 1,186
|
|
|
|
14년 전
|
조회 1,450
|
|
|
|
14년 전
|
조회 1,538
|
|
|
|
14년 전
|
조회 914
|
|
|
|
14년 전
|
조회 1,061
|
|
|
|
14년 전
|
조회 1,773
|
|
|
|
14년 전
|
조회 2,865
|
|
|
|
14년 전
|
조회 2,104
|
|
|
|
14년 전
|
조회 2,169
|
|
|
|
14년 전
|
조회 1,603
|
|
|
|
14년 전
|
조회 1,396
|
|
|
|
14년 전
|
조회 1,306
|
|
|
|
14년 전
|
조회 1,081
|
|
|
|
14년 전
|
조회 547
|
|
|
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 4,550
|
|
|
|
14년 전
|
조회 1,426
|
|
|
|
14년 전
|
조회 1,193
|
|
|
|
14년 전
|
조회 709
|
|
|
|
14년 전
|
조회 937
|
|
|
|
14년 전
|
조회 745
|
|
|
|
14년 전
|
조회 624
|
|
|
|
14년 전
|
조회 699
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 641
|
|
|
|
14년 전
|
조회 1,517
|
|
|
|
14년 전
|
조회 821
|
|
|
|
14년 전
|
조회 688
|
|
|
|
14년 전
|
조회 641
|
|
|
|
14년 전
|
조회 709
|
댓글 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