|
|
|
14년 전
|
조회 720
|
|
|
|
14년 전
|
조회 802
|
|
|
|
14년 전
|
조회 708
|
|
|
|
14년 전
|
조회 4,788
|
|
|
|
14년 전
|
조회 681
|
|
|
|
14년 전
|
조회 5,066
|
|
|
|
14년 전
|
조회 1,387
|
|
|
|
14년 전
|
조회 1,182
|
|
|
|
14년 전
|
조회 655
|
|
|
|
14년 전
|
조회 847
|
|
|
|
14년 전
|
조회 1,359
|
|
|
|
14년 전
|
조회 831
|
|
|
|
14년 전
|
조회 1,480
|
|
|
|
14년 전
|
조회 1,001
|
|
|
|
14년 전
|
조회 834
|
|
|
|
14년 전
|
조회 931
|
|
|
|
14년 전
|
조회 3,008
|
|
|
|
14년 전
|
조회 738
|
|
|
|
14년 전
|
조회 1,305
|
|
|
|
14년 전
|
조회 944
|
|
|
|
14년 전
|
조회 880
|
|
|
|
14년 전
|
조회 790
|
|
|
|
14년 전
|
조회 3,434
|
|
|
|
14년 전
|
조회 1,351
|
|
|
|
14년 전
|
조회 782
|
|
|
|
14년 전
|
조회 854
|
|
|
|
14년 전
|
조회 843
|
|
|
|
14년 전
|
조회 941
|
|
|
|
14년 전
|
조회 702
|
|
|
|
14년 전
|
조회 778
|
|
|
|
14년 전
|
조회 1,431
|
|
|
|
14년 전
|
조회 3,303
|
|
|
|
14년 전
|
조회 1,703
|
|
|
|
14년 전
|
조회 796
|
|
|
|
14년 전
|
조회 756
|
|
|
|
14년 전
|
조회 886
|
|
|
|
14년 전
|
조회 751
|
|
|
|
14년 전
|
조회 857
|
|
|
|
14년 전
|
조회 962
|
|
|
|
14년 전
|
조회 780
|
|
|
|
14년 전
|
조회 3,271
|
|
|
|
14년 전
|
조회 3,171
|
|
|
|
14년 전
|
조회 969
|
|
|
|
14년 전
|
조회 1,474
|
|
|
|
14년 전
|
조회 1,097
|
|
|
|
14년 전
|
조회 950
|
|
|
|
14년 전
|
조회 3,498
|
|
|
|
14년 전
|
조회 2,490
|
|
|
|
14년 전
|
조회 2,084
|
|
|
|
14년 전
|
조회 2,002
|
|
|
|
14년 전
|
조회 775
|
|
|
|
14년 전
|
조회 1,541
|
|
|
|
14년 전
|
조회 778
|
|
|
|
14년 전
|
조회 691
|
|
|
|
14년 전
|
조회 723
|
|
|
|
14년 전
|
조회 1,141
|
|
|
|
14년 전
|
조회 1,163
|
|
|
|
14년 전
|
조회 1,750
|
|
|
|
14년 전
|
조회 909
|
|
|
|
14년 전
|
조회 1,131
|
|
|
|
14년 전
|
조회 1,297
|
|
|
|
14년 전
|
조회 1,294
|
|
|
|
14년 전
|
조회 646
|
|
|
|
14년 전
|
조회 1,827
|
|
|
|
14년 전
|
조회 998
|
|
|
|
14년 전
|
조회 1,306
|
|
|
|
14년 전
|
조회 1,078
|
|
|
|
14년 전
|
조회 1,405
|
|
|
|
14년 전
|
조회 1,514
|
|
|
|
14년 전
|
조회 944
|
|
|
|
14년 전
|
조회 1,168
|
|
|
|
14년 전
|
조회 1,433
|
|
|
|
14년 전
|
조회 1,523
|
|
|
|
14년 전
|
조회 893
|
|
|
|
14년 전
|
조회 1,041
|
|
|
|
14년 전
|
조회 1,754
|
|
|
|
14년 전
|
조회 2,849
|
|
|
|
14년 전
|
조회 2,092
|
|
|
|
14년 전
|
조회 2,152
|
|
|
|
14년 전
|
조회 1,578
|
|
|
|
14년 전
|
조회 1,375
|
|
|
|
14년 전
|
조회 1,290
|
|
|
|
14년 전
|
조회 1,069
|
|
|
|
14년 전
|
조회 520
|
|
|
|
14년 전
|
조회 1,443
|
|
|
|
14년 전
|
조회 4,535
|
|
|
|
14년 전
|
조회 1,410
|
|
|
|
14년 전
|
조회 1,180
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 913
|
|
|
|
14년 전
|
조회 731
|
|
|
|
14년 전
|
조회 608
|
|
|
|
14년 전
|
조회 684
|
|
|
|
14년 전
|
조회 673
|
|
|
|
14년 전
|
조회 623
|
|
|
|
14년 전
|
조회 1,500
|
|
|
|
14년 전
|
조회 804
|
|
|
|
14년 전
|
조회 668
|
|
|
|
14년 전
|
조회 629
|
|
|
|
14년 전
|
조회 694
|
댓글 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