|
|
|
14년 전
|
조회 678
|
|
|
|
14년 전
|
조회 765
|
|
|
|
14년 전
|
조회 680
|
|
|
|
14년 전
|
조회 4,761
|
|
|
|
14년 전
|
조회 649
|
|
|
|
14년 전
|
조회 5,033
|
|
|
|
14년 전
|
조회 1,345
|
|
|
|
14년 전
|
조회 1,147
|
|
|
|
14년 전
|
조회 623
|
|
|
|
14년 전
|
조회 803
|
|
|
|
14년 전
|
조회 1,322
|
|
|
|
14년 전
|
조회 784
|
|
|
|
14년 전
|
조회 1,455
|
|
|
|
14년 전
|
조회 966
|
|
|
|
14년 전
|
조회 796
|
|
|
|
14년 전
|
조회 894
|
|
|
|
14년 전
|
조회 2,974
|
|
|
|
14년 전
|
조회 704
|
|
|
|
14년 전
|
조회 1,262
|
|
|
|
14년 전
|
조회 909
|
|
|
|
14년 전
|
조회 852
|
|
|
|
14년 전
|
조회 750
|
|
|
|
14년 전
|
조회 3,397
|
|
|
|
14년 전
|
조회 1,318
|
|
|
|
14년 전
|
조회 744
|
|
|
|
14년 전
|
조회 826
|
|
|
|
14년 전
|
조회 802
|
|
|
|
14년 전
|
조회 908
|
|
|
|
14년 전
|
조회 676
|
|
|
|
14년 전
|
조회 739
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 3,258
|
|
|
|
14년 전
|
조회 1,678
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 720
|
|
|
|
14년 전
|
조회 845
|
|
|
|
14년 전
|
조회 725
|
|
|
|
14년 전
|
조회 826
|
|
|
|
14년 전
|
조회 935
|
|
|
|
14년 전
|
조회 742
|
|
|
|
14년 전
|
조회 3,232
|
|
|
|
14년 전
|
조회 3,132
|
|
|
|
14년 전
|
조회 924
|
|
|
|
14년 전
|
조회 1,435
|
|
|
|
14년 전
|
조회 1,056
|
|
|
|
14년 전
|
조회 909
|
|
|
|
14년 전
|
조회 3,461
|
|
|
|
14년 전
|
조회 2,449
|
|
|
|
14년 전
|
조회 2,051
|
|
|
|
14년 전
|
조회 1,968
|
|
|
|
14년 전
|
조회 739
|
|
|
|
14년 전
|
조회 1,503
|
|
|
|
14년 전
|
조회 751
|
|
|
|
14년 전
|
조회 648
|
|
|
|
14년 전
|
조회 683
|
|
|
|
14년 전
|
조회 1,101
|
|
|
|
14년 전
|
조회 1,132
|
|
|
|
14년 전
|
조회 1,720
|
|
|
|
14년 전
|
조회 873
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 1,263
|
|
|
|
14년 전
|
조회 1,261
|
|
|
|
14년 전
|
조회 606
|
|
|
|
14년 전
|
조회 1,793
|
|
|
|
14년 전
|
조회 957
|
|
|
|
14년 전
|
조회 1,272
|
|
|
|
14년 전
|
조회 1,046
|
|
|
|
14년 전
|
조회 1,366
|
|
|
|
14년 전
|
조회 1,476
|
|
|
|
14년 전
|
조회 913
|
|
|
|
14년 전
|
조회 1,132
|
|
|
|
14년 전
|
조회 1,399
|
|
|
|
14년 전
|
조회 1,483
|
|
|
|
14년 전
|
조회 849
|
|
|
|
14년 전
|
조회 1,001
|
|
|
|
14년 전
|
조회 1,716
|
|
|
|
14년 전
|
조회 2,811
|
|
|
|
14년 전
|
조회 2,069
|
|
|
|
14년 전
|
조회 2,121
|
|
|
|
14년 전
|
조회 1,538
|
|
|
|
14년 전
|
조회 1,344
|
|
|
|
14년 전
|
조회 1,244
|
|
|
|
14년 전
|
조회 1,025
|
|
|
|
14년 전
|
조회 486
|
|
|
|
14년 전
|
조회 1,406
|
|
|
|
14년 전
|
조회 4,494
|
|
|
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 1,151
|
|
|
|
14년 전
|
조회 636
|
|
|
|
14년 전
|
조회 875
|
|
|
|
14년 전
|
조회 686
|
|
|
|
14년 전
|
조회 582
|
|
|
|
14년 전
|
조회 653
|
|
|
|
14년 전
|
조회 632
|
|
|
|
14년 전
|
조회 586
|
|
|
|
14년 전
|
조회 1,457
|
|
|
|
14년 전
|
조회 774
|
|
|
|
14년 전
|
조회 633
|
|
|
|
14년 전
|
조회 602
|
|
|
|
14년 전
|
조회 654
|
댓글 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