|
|
|
14년 전
|
조회 610
|
|
|
|
14년 전
|
조회 698
|
|
|
|
14년 전
|
조회 600
|
|
|
|
14년 전
|
조회 4,690
|
|
|
|
14년 전
|
조회 573
|
|
|
|
14년 전
|
조회 4,963
|
|
|
|
14년 전
|
조회 1,286
|
|
|
|
14년 전
|
조회 1,085
|
|
|
|
14년 전
|
조회 555
|
|
|
|
14년 전
|
조회 734
|
|
|
|
14년 전
|
조회 1,258
|
|
|
|
14년 전
|
조회 722
|
|
|
|
14년 전
|
조회 1,388
|
|
|
|
14년 전
|
조회 894
|
|
|
|
14년 전
|
조회 743
|
|
|
|
14년 전
|
조회 814
|
|
|
|
14년 전
|
조회 2,922
|
|
|
|
14년 전
|
조회 635
|
|
|
|
14년 전
|
조회 1,198
|
|
|
|
14년 전
|
조회 834
|
|
|
|
14년 전
|
조회 775
|
|
|
|
14년 전
|
조회 687
|
|
|
|
14년 전
|
조회 3,327
|
|
|
|
14년 전
|
조회 1,246
|
|
|
|
14년 전
|
조회 679
|
|
|
|
14년 전
|
조회 752
|
|
|
|
14년 전
|
조회 737
|
|
|
|
14년 전
|
조회 837
|
|
|
|
14년 전
|
조회 599
|
|
|
|
14년 전
|
조회 679
|
|
|
|
14년 전
|
조회 1,330
|
|
|
|
14년 전
|
조회 3,192
|
|
|
|
14년 전
|
조회 1,604
|
|
|
|
14년 전
|
조회 712
|
|
|
|
14년 전
|
조회 655
|
|
|
|
14년 전
|
조회 785
|
|
|
|
14년 전
|
조회 655
|
|
|
|
14년 전
|
조회 751
|
|
|
|
14년 전
|
조회 861
|
|
|
|
14년 전
|
조회 669
|
|
|
|
14년 전
|
조회 3,154
|
|
|
|
14년 전
|
조회 3,069
|
|
|
|
14년 전
|
조회 860
|
|
|
|
14년 전
|
조회 1,369
|
|
|
|
14년 전
|
조회 992
|
|
|
|
14년 전
|
조회 844
|
|
|
|
14년 전
|
조회 3,395
|
|
|
|
14년 전
|
조회 2,390
|
|
|
|
14년 전
|
조회 1,984
|
|
|
|
14년 전
|
조회 1,901
|
|
|
|
14년 전
|
조회 676
|
|
|
|
14년 전
|
조회 1,436
|
|
|
|
14년 전
|
조회 683
|
|
|
|
14년 전
|
조회 592
|
|
|
|
14년 전
|
조회 623
|
|
|
|
14년 전
|
조회 1,043
|
|
|
|
14년 전
|
조회 1,064
|
|
|
|
14년 전
|
조회 1,654
|
|
|
|
14년 전
|
조회 817
|
|
|
|
14년 전
|
조회 1,032
|
|
|
|
14년 전
|
조회 1,199
|
|
|
|
14년 전
|
조회 1,198
|
|
|
|
14년 전
|
조회 549
|
|
|
|
14년 전
|
조회 1,727
|
|
|
|
14년 전
|
조회 904
|
|
|
|
14년 전
|
조회 1,204
|
|
|
|
14년 전
|
조회 980
|
|
|
|
14년 전
|
조회 1,309
|
|
|
|
14년 전
|
조회 1,418
|
|
|
|
14년 전
|
조회 847
|
|
|
|
14년 전
|
조회 1,066
|
|
|
|
14년 전
|
조회 1,347
|
|
|
|
14년 전
|
조회 1,417
|
|
|
|
14년 전
|
조회 790
|
|
|
|
14년 전
|
조회 939
|
|
|
|
14년 전
|
조회 1,648
|
|
|
|
14년 전
|
조회 2,755
|
|
|
|
14년 전
|
조회 2,010
|
|
|
|
14년 전
|
조회 2,068
|
|
|
|
14년 전
|
조회 1,469
|
|
|
|
14년 전
|
조회 1,280
|
|
|
|
14년 전
|
조회 1,179
|
|
|
|
14년 전
|
조회 957
|
|
|
|
14년 전
|
조회 427
|
|
|
|
14년 전
|
조회 1,341
|
|
|
|
14년 전
|
조회 4,441
|
|
|
|
14년 전
|
조회 1,319
|
|
|
|
14년 전
|
조회 1,082
|
|
|
|
14년 전
|
조회 579
|
|
|
|
14년 전
|
조회 808
|
|
|
|
14년 전
|
조회 632
|
|
|
|
14년 전
|
조회 517
|
|
|
|
14년 전
|
조회 593
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 515
|
|
|
|
14년 전
|
조회 1,391
|
|
|
|
14년 전
|
조회 714
|
|
|
|
14년 전
|
조회 570
|
|
|
|
14년 전
|
조회 543
|
|
|
|
14년 전
|
조회 600
|
댓글 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