|
|
|
14년 전
|
조회 598
|
|
|
|
14년 전
|
조회 685
|
|
|
|
14년 전
|
조회 593
|
|
|
|
14년 전
|
조회 4,678
|
|
|
|
14년 전
|
조회 563
|
|
|
|
14년 전
|
조회 4,952
|
|
|
|
14년 전
|
조회 1,277
|
|
|
|
14년 전
|
조회 1,076
|
|
|
|
14년 전
|
조회 551
|
|
|
|
14년 전
|
조회 723
|
|
|
|
14년 전
|
조회 1,246
|
|
|
|
14년 전
|
조회 715
|
|
|
|
14년 전
|
조회 1,377
|
|
|
|
14년 전
|
조회 888
|
|
|
|
14년 전
|
조회 735
|
|
|
|
14년 전
|
조회 809
|
|
|
|
14년 전
|
조회 2,916
|
|
|
|
14년 전
|
조회 628
|
|
|
|
14년 전
|
조회 1,188
|
|
|
|
14년 전
|
조회 824
|
|
|
|
14년 전
|
조회 767
|
|
|
|
14년 전
|
조회 680
|
|
|
|
14년 전
|
조회 3,318
|
|
|
|
14년 전
|
조회 1,236
|
|
|
|
14년 전
|
조회 669
|
|
|
|
14년 전
|
조회 744
|
|
|
|
14년 전
|
조회 731
|
|
|
|
14년 전
|
조회 826
|
|
|
|
14년 전
|
조회 589
|
|
|
|
14년 전
|
조회 669
|
|
|
|
14년 전
|
조회 1,323
|
|
|
|
14년 전
|
조회 3,188
|
|
|
|
14년 전
|
조회 1,595
|
|
|
|
14년 전
|
조회 704
|
|
|
|
14년 전
|
조회 645
|
|
|
|
14년 전
|
조회 778
|
|
|
|
14년 전
|
조회 645
|
|
|
|
14년 전
|
조회 746
|
|
|
|
14년 전
|
조회 855
|
|
|
|
14년 전
|
조회 663
|
|
|
|
14년 전
|
조회 3,149
|
|
|
|
14년 전
|
조회 3,060
|
|
|
|
14년 전
|
조회 855
|
|
|
|
14년 전
|
조회 1,362
|
|
|
|
14년 전
|
조회 980
|
|
|
|
14년 전
|
조회 836
|
|
|
|
14년 전
|
조회 3,388
|
|
|
|
14년 전
|
조회 2,387
|
|
|
|
14년 전
|
조회 1,977
|
|
|
|
14년 전
|
조회 1,897
|
|
|
|
14년 전
|
조회 667
|
|
|
|
14년 전
|
조회 1,426
|
|
|
|
14년 전
|
조회 680
|
|
|
|
14년 전
|
조회 587
|
|
|
|
14년 전
|
조회 616
|
|
|
|
14년 전
|
조회 1,029
|
|
|
|
14년 전
|
조회 1,060
|
|
|
|
14년 전
|
조회 1,646
|
|
|
|
14년 전
|
조회 813
|
|
|
|
14년 전
|
조회 1,025
|
|
|
|
14년 전
|
조회 1,190
|
|
|
|
14년 전
|
조회 1,186
|
|
|
|
14년 전
|
조회 544
|
|
|
|
14년 전
|
조회 1,721
|
|
|
|
14년 전
|
조회 896
|
|
|
|
14년 전
|
조회 1,197
|
|
|
|
14년 전
|
조회 974
|
|
|
|
14년 전
|
조회 1,300
|
|
|
|
14년 전
|
조회 1,413
|
|
|
|
14년 전
|
조회 837
|
|
|
|
14년 전
|
조회 1,059
|
|
|
|
14년 전
|
조회 1,341
|
|
|
|
14년 전
|
조회 1,410
|
|
|
|
14년 전
|
조회 784
|
|
|
|
14년 전
|
조회 935
|
|
|
|
14년 전
|
조회 1,644
|
|
|
|
14년 전
|
조회 2,747
|
|
|
|
14년 전
|
조회 2,001
|
|
|
|
14년 전
|
조회 2,062
|
|
|
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 1,273
|
|
|
|
14년 전
|
조회 1,176
|
|
|
|
14년 전
|
조회 951
|
|
|
|
14년 전
|
조회 422
|
|
|
|
14년 전
|
조회 1,334
|
|
|
|
14년 전
|
조회 4,437
|
|
|
|
14년 전
|
조회 1,312
|
|
|
|
14년 전
|
조회 1,075
|
|
|
|
14년 전
|
조회 573
|
|
|
|
14년 전
|
조회 803
|
|
|
|
14년 전
|
조회 628
|
|
|
|
14년 전
|
조회 508
|
|
|
|
14년 전
|
조회 589
|
|
|
|
14년 전
|
조회 572
|
|
|
|
14년 전
|
조회 510
|
|
|
|
14년 전
|
조회 1,387
|
|
|
|
14년 전
|
조회 707
|
|
|
|
14년 전
|
조회 566
|
|
|
|
14년 전
|
조회 535
|
|
|
|
14년 전
|
조회 595
|
댓글 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