|
|
|
14년 전
|
조회 740
|
|
|
|
14년 전
|
조회 821
|
|
|
|
14년 전
|
조회 730
|
|
|
|
14년 전
|
조회 4,813
|
|
|
|
14년 전
|
조회 714
|
|
|
|
14년 전
|
조회 5,096
|
|
|
|
14년 전
|
조회 1,406
|
|
|
|
14년 전
|
조회 1,206
|
|
|
|
14년 전
|
조회 691
|
|
|
|
14년 전
|
조회 877
|
|
|
|
14년 전
|
조회 1,383
|
|
|
|
14년 전
|
조회 859
|
|
|
|
14년 전
|
조회 1,512
|
|
|
|
14년 전
|
조회 1,037
|
|
|
|
14년 전
|
조회 858
|
|
|
|
14년 전
|
조회 957
|
|
|
|
14년 전
|
조회 3,031
|
|
|
|
14년 전
|
조회 765
|
|
|
|
14년 전
|
조회 1,334
|
|
|
|
14년 전
|
조회 976
|
|
|
|
14년 전
|
조회 902
|
|
|
|
14년 전
|
조회 814
|
|
|
|
14년 전
|
조회 3,468
|
|
|
|
14년 전
|
조회 1,377
|
|
|
|
14년 전
|
조회 813
|
|
|
|
14년 전
|
조회 877
|
|
|
|
14년 전
|
조회 872
|
|
|
|
14년 전
|
조회 965
|
|
|
|
14년 전
|
조회 733
|
|
|
|
14년 전
|
조회 815
|
|
|
|
14년 전
|
조회 1,457
|
|
|
|
14년 전
|
조회 3,325
|
|
|
|
14년 전
|
조회 1,730
|
|
|
|
14년 전
|
조회 819
|
|
|
|
14년 전
|
조회 791
|
|
|
|
14년 전
|
조회 917
|
|
|
|
14년 전
|
조회 780
|
|
|
|
14년 전
|
조회 893
|
|
|
|
14년 전
|
조회 1,005
|
|
|
|
14년 전
|
조회 813
|
|
|
|
14년 전
|
조회 3,301
|
|
|
|
14년 전
|
조회 3,208
|
|
|
|
14년 전
|
조회 993
|
|
|
|
14년 전
|
조회 1,509
|
|
|
|
14년 전
|
조회 1,131
|
|
|
|
14년 전
|
조회 982
|
|
|
|
14년 전
|
조회 3,530
|
|
|
|
14년 전
|
조회 2,518
|
|
|
|
14년 전
|
조회 2,123
|
|
|
|
14년 전
|
조회 2,034
|
|
|
|
14년 전
|
조회 806
|
|
|
|
14년 전
|
조회 1,567
|
|
|
|
14년 전
|
조회 806
|
|
|
|
14년 전
|
조회 721
|
|
|
|
14년 전
|
조회 754
|
|
|
|
14년 전
|
조회 1,172
|
|
|
|
14년 전
|
조회 1,197
|
|
|
|
14년 전
|
조회 1,782
|
|
|
|
14년 전
|
조회 931
|
|
|
|
14년 전
|
조회 1,163
|
|
|
|
14년 전
|
조회 1,334
|
|
|
|
14년 전
|
조회 1,327
|
|
|
|
14년 전
|
조회 680
|
|
|
|
14년 전
|
조회 1,864
|
|
|
|
14년 전
|
조회 1,029
|
|
|
|
14년 전
|
조회 1,331
|
|
|
|
14년 전
|
조회 1,107
|
|
|
|
14년 전
|
조회 1,429
|
|
|
|
14년 전
|
조회 1,546
|
|
|
|
14년 전
|
조회 978
|
|
|
|
14년 전
|
조회 1,206
|
|
|
|
14년 전
|
조회 1,469
|
|
|
|
14년 전
|
조회 1,549
|
|
|
|
14년 전
|
조회 927
|
|
|
|
14년 전
|
조회 1,081
|
|
|
|
14년 전
|
조회 1,786
|
|
|
|
14년 전
|
조회 2,878
|
|
|
|
14년 전
|
조회 2,122
|
|
|
|
14년 전
|
조회 2,181
|
|
|
|
14년 전
|
조회 1,618
|
|
|
|
14년 전
|
조회 1,415
|
|
|
|
14년 전
|
조회 1,319
|
|
|
|
14년 전
|
조회 1,090
|
|
|
|
14년 전
|
조회 558
|
|
|
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 4,563
|
|
|
|
14년 전
|
조회 1,441
|
|
|
|
14년 전
|
조회 1,208
|
|
|
|
14년 전
|
조회 716
|
|
|
|
14년 전
|
조회 951
|
|
|
|
14년 전
|
조회 758
|
|
|
|
14년 전
|
조회 641
|
|
|
|
14년 전
|
조회 714
|
|
|
|
14년 전
|
조회 708
|
|
|
|
14년 전
|
조회 655
|
|
|
|
14년 전
|
조회 1,531
|
|
|
|
14년 전
|
조회 831
|
|
|
|
14년 전
|
조회 703
|
|
|
|
14년 전
|
조회 654
|
|
|
|
14년 전
|
조회 729
|
댓글 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