|
|
|
14년 전
|
조회 771
|
|
|
|
14년 전
|
조회 850
|
|
|
|
14년 전
|
조회 763
|
|
|
|
14년 전
|
조회 4,857
|
|
|
|
14년 전
|
조회 735
|
|
|
|
14년 전
|
조회 5,119
|
|
|
|
14년 전
|
조회 1,428
|
|
|
|
14년 전
|
조회 1,262
|
|
|
|
14년 전
|
조회 712
|
|
|
|
14년 전
|
조회 897
|
|
|
|
14년 전
|
조회 1,406
|
|
|
|
14년 전
|
조회 886
|
|
|
|
14년 전
|
조회 1,549
|
|
|
|
14년 전
|
조회 1,067
|
|
|
|
14년 전
|
조회 888
|
|
|
|
14년 전
|
조회 1,003
|
|
|
|
14년 전
|
조회 3,056
|
|
|
|
14년 전
|
조회 810
|
|
|
|
14년 전
|
조회 1,352
|
|
|
|
14년 전
|
조회 1,004
|
|
|
|
14년 전
|
조회 939
|
|
|
|
14년 전
|
조회 838
|
|
|
|
14년 전
|
조회 3,487
|
|
|
|
14년 전
|
조회 1,421
|
|
|
|
14년 전
|
조회 846
|
|
|
|
14년 전
|
조회 914
|
|
|
|
14년 전
|
조회 905
|
|
|
|
14년 전
|
조회 996
|
|
|
|
14년 전
|
조회 764
|
|
|
|
14년 전
|
조회 857
|
|
|
|
14년 전
|
조회 1,494
|
|
|
|
14년 전
|
조회 3,363
|
|
|
|
14년 전
|
조회 1,776
|
|
|
|
14년 전
|
조회 850
|
|
|
|
14년 전
|
조회 828
|
|
|
|
14년 전
|
조회 937
|
|
|
|
14년 전
|
조회 816
|
|
|
|
14년 전
|
조회 920
|
|
|
|
14년 전
|
조회 1,030
|
|
|
|
14년 전
|
조회 832
|
|
|
|
14년 전
|
조회 3,322
|
|
|
|
14년 전
|
조회 3,225
|
|
|
|
14년 전
|
조회 1,014
|
|
|
|
14년 전
|
조회 1,539
|
|
|
|
14년 전
|
조회 1,150
|
|
|
|
14년 전
|
조회 1,006
|
|
|
|
14년 전
|
조회 3,554
|
|
|
|
14년 전
|
조회 2,529
|
|
|
|
14년 전
|
조회 2,146
|
|
|
|
14년 전
|
조회 2,064
|
|
|
|
14년 전
|
조회 837
|
|
|
|
14년 전
|
조회 1,604
|
|
|
|
14년 전
|
조회 837
|
|
|
|
14년 전
|
조회 752
|
|
|
|
14년 전
|
조회 794
|
|
|
|
14년 전
|
조회 1,214
|
|
|
|
14년 전
|
조회 1,233
|
|
|
|
14년 전
|
조회 1,827
|
|
|
|
14년 전
|
조회 973
|
|
|
|
14년 전
|
조회 1,195
|
|
|
|
14년 전
|
조회 1,361
|
|
|
|
14년 전
|
조회 1,349
|
|
|
|
14년 전
|
조회 710
|
|
|
|
14년 전
|
조회 1,903
|
|
|
|
14년 전
|
조회 1,068
|
|
|
|
14년 전
|
조회 1,379
|
|
|
|
14년 전
|
조회 1,135
|
|
|
|
14년 전
|
조회 1,474
|
|
|
|
14년 전
|
조회 1,585
|
|
|
|
14년 전
|
조회 1,005
|
|
|
|
14년 전
|
조회 1,237
|
|
|
|
14년 전
|
조회 1,507
|
|
|
|
14년 전
|
조회 1,592
|
|
|
|
14년 전
|
조회 939
|
|
|
|
14년 전
|
조회 1,110
|
|
|
|
14년 전
|
조회 1,807
|
|
|
|
14년 전
|
조회 2,915
|
|
|
|
14년 전
|
조회 2,157
|
|
|
|
14년 전
|
조회 2,210
|
|
|
|
14년 전
|
조회 1,658
|
|
|
|
14년 전
|
조회 1,441
|
|
|
|
14년 전
|
조회 1,343
|
|
|
|
14년 전
|
조회 1,110
|
|
|
|
14년 전
|
조회 589
|
|
|
|
14년 전
|
조회 1,517
|
|
|
|
14년 전
|
조회 4,581
|
|
|
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 1,252
|
|
|
|
14년 전
|
조회 736
|
|
|
|
14년 전
|
조회 976
|
|
|
|
14년 전
|
조회 775
|
|
|
|
14년 전
|
조회 670
|
|
|
|
14년 전
|
조회 746
|
|
|
|
14년 전
|
조회 735
|
|
|
|
14년 전
|
조회 688
|
|
|
|
14년 전
|
조회 1,565
|
|
|
|
14년 전
|
조회 867
|
|
|
|
14년 전
|
조회 731
|
|
|
|
14년 전
|
조회 688
|
|
|
|
14년 전
|
조회 756
|
댓글 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