|
|
|
14년 전
|
조회 616
|
|
|
|
14년 전
|
조회 704
|
|
|
|
14년 전
|
조회 605
|
|
|
|
14년 전
|
조회 4,694
|
|
|
|
14년 전
|
조회 581
|
|
|
|
14년 전
|
조회 4,973
|
|
|
|
14년 전
|
조회 1,290
|
|
|
|
14년 전
|
조회 1,091
|
|
|
|
14년 전
|
조회 557
|
|
|
|
14년 전
|
조회 739
|
|
|
|
14년 전
|
조회 1,261
|
|
|
|
14년 전
|
조회 728
|
|
|
|
14년 전
|
조회 1,390
|
|
|
|
14년 전
|
조회 901
|
|
|
|
14년 전
|
조회 745
|
|
|
|
14년 전
|
조회 823
|
|
|
|
14년 전
|
조회 2,927
|
|
|
|
14년 전
|
조회 639
|
|
|
|
14년 전
|
조회 1,203
|
|
|
|
14년 전
|
조회 841
|
|
|
|
14년 전
|
조회 781
|
|
|
|
14년 전
|
조회 695
|
|
|
|
14년 전
|
조회 3,333
|
|
|
|
14년 전
|
조회 1,256
|
|
|
|
14년 전
|
조회 683
|
|
|
|
14년 전
|
조회 753
|
|
|
|
14년 전
|
조회 741
|
|
|
|
14년 전
|
조회 842
|
|
|
|
14년 전
|
조회 604
|
|
|
|
14년 전
|
조회 682
|
|
|
|
14년 전
|
조회 1,331
|
|
|
|
14년 전
|
조회 3,199
|
|
|
|
14년 전
|
조회 1,610
|
|
|
|
14년 전
|
조회 719
|
|
|
|
14년 전
|
조회 660
|
|
|
|
14년 전
|
조회 788
|
|
|
|
14년 전
|
조회 658
|
|
|
|
14년 전
|
조회 756
|
|
|
|
14년 전
|
조회 865
|
|
|
|
14년 전
|
조회 671
|
|
|
|
14년 전
|
조회 3,158
|
|
|
|
14년 전
|
조회 3,073
|
|
|
|
14년 전
|
조회 866
|
|
|
|
14년 전
|
조회 1,375
|
|
|
|
14년 전
|
조회 996
|
|
|
|
14년 전
|
조회 847
|
|
|
|
14년 전
|
조회 3,396
|
|
|
|
14년 전
|
조회 2,392
|
|
|
|
14년 전
|
조회 1,991
|
|
|
|
14년 전
|
조회 1,905
|
|
|
|
14년 전
|
조회 679
|
|
|
|
14년 전
|
조회 1,441
|
|
|
|
14년 전
|
조회 686
|
|
|
|
14년 전
|
조회 594
|
|
|
|
14년 전
|
조회 628
|
|
|
|
14년 전
|
조회 1,045
|
|
|
|
14년 전
|
조회 1,068
|
|
|
|
14년 전
|
조회 1,657
|
|
|
|
14년 전
|
조회 820
|
|
|
|
14년 전
|
조회 1,037
|
|
|
|
14년 전
|
조회 1,203
|
|
|
|
14년 전
|
조회 1,205
|
|
|
|
14년 전
|
조회 555
|
|
|
|
14년 전
|
조회 1,731
|
|
|
|
14년 전
|
조회 908
|
|
|
|
14년 전
|
조회 1,207
|
|
|
|
14년 전
|
조회 983
|
|
|
|
14년 전
|
조회 1,318
|
|
|
|
14년 전
|
조회 1,422
|
|
|
|
14년 전
|
조회 851
|
|
|
|
14년 전
|
조회 1,072
|
|
|
|
14년 전
|
조회 1,354
|
|
|
|
14년 전
|
조회 1,420
|
|
|
|
14년 전
|
조회 793
|
|
|
|
14년 전
|
조회 941
|
|
|
|
14년 전
|
조회 1,654
|
|
|
|
14년 전
|
조회 2,758
|
|
|
|
14년 전
|
조회 2,013
|
|
|
|
14년 전
|
조회 2,072
|
|
|
|
14년 전
|
조회 1,472
|
|
|
|
14년 전
|
조회 1,287
|
|
|
|
14년 전
|
조회 1,184
|
|
|
|
14년 전
|
조회 962
|
|
|
|
14년 전
|
조회 431
|
|
|
|
14년 전
|
조회 1,343
|
|
|
|
14년 전
|
조회 4,446
|
|
|
|
14년 전
|
조회 1,323
|
|
|
|
14년 전
|
조회 1,089
|
|
|
|
14년 전
|
조회 581
|
|
|
|
14년 전
|
조회 813
|
|
|
|
14년 전
|
조회 633
|
|
|
|
14년 전
|
조회 523
|
|
|
|
14년 전
|
조회 598
|
|
|
|
14년 전
|
조회 580
|
|
|
|
14년 전
|
조회 517
|
|
|
|
14년 전
|
조회 1,395
|
|
|
|
14년 전
|
조회 720
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 547
|
|
|
|
14년 전
|
조회 601
|
댓글 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