|
|
|
14년 전
|
조회 743
|
|
|
|
14년 전
|
조회 827
|
|
|
|
14년 전
|
조회 734
|
|
|
|
14년 전
|
조회 4,820
|
|
|
|
14년 전
|
조회 717
|
|
|
|
14년 전
|
조회 5,101
|
|
|
|
14년 전
|
조회 1,410
|
|
|
|
14년 전
|
조회 1,213
|
|
|
|
14년 전
|
조회 695
|
|
|
|
14년 전
|
조회 879
|
|
|
|
14년 전
|
조회 1,383
|
|
|
|
14년 전
|
조회 864
|
|
|
|
14년 전
|
조회 1,515
|
|
|
|
14년 전
|
조회 1,040
|
|
|
|
14년 전
|
조회 861
|
|
|
|
14년 전
|
조회 963
|
|
|
|
14년 전
|
조회 3,034
|
|
|
|
14년 전
|
조회 772
|
|
|
|
14년 전
|
조회 1,335
|
|
|
|
14년 전
|
조회 981
|
|
|
|
14년 전
|
조회 908
|
|
|
|
14년 전
|
조회 816
|
|
|
|
14년 전
|
조회 3,472
|
|
|
|
14년 전
|
조회 1,380
|
|
|
|
14년 전
|
조회 816
|
|
|
|
14년 전
|
조회 886
|
|
|
|
14년 전
|
조회 880
|
|
|
|
14년 전
|
조회 968
|
|
|
|
14년 전
|
조회 740
|
|
|
|
14년 전
|
조회 820
|
|
|
|
14년 전
|
조회 1,467
|
|
|
|
14년 전
|
조회 3,330
|
|
|
|
14년 전
|
조회 1,736
|
|
|
|
14년 전
|
조회 820
|
|
|
|
14년 전
|
조회 800
|
|
|
|
14년 전
|
조회 921
|
|
|
|
14년 전
|
조회 789
|
|
|
|
14년 전
|
조회 897
|
|
|
|
14년 전
|
조회 1,007
|
|
|
|
14년 전
|
조회 817
|
|
|
|
14년 전
|
조회 3,304
|
|
|
|
14년 전
|
조회 3,210
|
|
|
|
14년 전
|
조회 996
|
|
|
|
14년 전
|
조회 1,514
|
|
|
|
14년 전
|
조회 1,135
|
|
|
|
14년 전
|
조회 985
|
|
|
|
14년 전
|
조회 3,533
|
|
|
|
14년 전
|
조회 2,520
|
|
|
|
14년 전
|
조회 2,124
|
|
|
|
14년 전
|
조회 2,038
|
|
|
|
14년 전
|
조회 810
|
|
|
|
14년 전
|
조회 1,569
|
|
|
|
14년 전
|
조회 811
|
|
|
|
14년 전
|
조회 726
|
|
|
|
14년 전
|
조회 765
|
|
|
|
14년 전
|
조회 1,179
|
|
|
|
14년 전
|
조회 1,204
|
|
|
|
14년 전
|
조회 1,791
|
|
|
|
14년 전
|
조회 935
|
|
|
|
14년 전
|
조회 1,171
|
|
|
|
14년 전
|
조회 1,340
|
|
|
|
14년 전
|
조회 1,330
|
|
|
|
14년 전
|
조회 685
|
|
|
|
14년 전
|
조회 1,871
|
|
|
|
14년 전
|
조회 1,032
|
|
|
|
14년 전
|
조회 1,336
|
|
|
|
14년 전
|
조회 1,113
|
|
|
|
14년 전
|
조회 1,435
|
|
|
|
14년 전
|
조회 1,552
|
|
|
|
14년 전
|
조회 980
|
|
|
|
14년 전
|
조회 1,211
|
|
|
|
14년 전
|
조회 1,472
|
|
|
|
14년 전
|
조회 1,554
|
|
|
|
14년 전
|
조회 928
|
|
|
|
14년 전
|
조회 1,084
|
|
|
|
14년 전
|
조회 1,791
|
|
|
|
14년 전
|
조회 2,881
|
|
|
|
14년 전
|
조회 2,127
|
|
|
|
14년 전
|
조회 2,184
|
|
|
|
14년 전
|
조회 1,622
|
|
|
|
14년 전
|
조회 1,416
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 1,095
|
|
|
|
14년 전
|
조회 563
|
|
|
|
14년 전
|
조회 1,482
|
|
|
|
14년 전
|
조회 4,565
|
|
|
|
14년 전
|
조회 1,447
|
|
|
|
14년 전
|
조회 1,213
|
|
|
|
14년 전
|
조회 717
|
|
|
|
14년 전
|
조회 954
|
|
|
|
14년 전
|
조회 760
|
|
|
|
14년 전
|
조회 643
|
|
|
|
14년 전
|
조회 719
|
|
|
|
14년 전
|
조회 711
|
|
|
|
14년 전
|
조회 659
|
|
|
|
14년 전
|
조회 1,536
|
|
|
|
14년 전
|
조회 836
|
|
|
|
14년 전
|
조회 711
|
|
|
|
14년 전
|
조회 660
|
|
|
|
14년 전
|
조회 731
|
댓글 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