|
|
|
14년 전
|
조회 685
|
|
|
|
14년 전
|
조회 770
|
|
|
|
14년 전
|
조회 693
|
|
|
|
14년 전
|
조회 4,763
|
|
|
|
14년 전
|
조회 658
|
|
|
|
14년 전
|
조회 5,039
|
|
|
|
14년 전
|
조회 1,350
|
|
|
|
14년 전
|
조회 1,152
|
|
|
|
14년 전
|
조회 627
|
|
|
|
14년 전
|
조회 809
|
|
|
|
14년 전
|
조회 1,328
|
|
|
|
14년 전
|
조회 793
|
|
|
|
14년 전
|
조회 1,459
|
|
|
|
14년 전
|
조회 972
|
|
|
|
14년 전
|
조회 802
|
|
|
|
14년 전
|
조회 902
|
|
|
|
14년 전
|
조회 2,979
|
|
|
|
14년 전
|
조회 708
|
|
|
|
14년 전
|
조회 1,271
|
|
|
|
14년 전
|
조회 911
|
|
|
|
14년 전
|
조회 855
|
|
|
|
14년 전
|
조회 754
|
|
|
|
14년 전
|
조회 3,401
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 750
|
|
|
|
14년 전
|
조회 833
|
|
|
|
14년 전
|
조회 810
|
|
|
|
14년 전
|
조회 913
|
|
|
|
14년 전
|
조회 681
|
|
|
|
14년 전
|
조회 747
|
|
|
|
14년 전
|
조회 1,407
|
|
|
|
14년 전
|
조회 3,265
|
|
|
|
14년 전
|
조회 1,683
|
|
|
|
14년 전
|
조회 784
|
|
|
|
14년 전
|
조회 727
|
|
|
|
14년 전
|
조회 852
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 831
|
|
|
|
14년 전
|
조회 944
|
|
|
|
14년 전
|
조회 749
|
|
|
|
14년 전
|
조회 3,237
|
|
|
|
14년 전
|
조회 3,140
|
|
|
|
14년 전
|
조회 930
|
|
|
|
14년 전
|
조회 1,443
|
|
|
|
14년 전
|
조회 1,065
|
|
|
|
14년 전
|
조회 917
|
|
|
|
14년 전
|
조회 3,466
|
|
|
|
14년 전
|
조회 2,452
|
|
|
|
14년 전
|
조회 2,055
|
|
|
|
14년 전
|
조회 1,978
|
|
|
|
14년 전
|
조회 745
|
|
|
|
14년 전
|
조회 1,508
|
|
|
|
14년 전
|
조회 758
|
|
|
|
14년 전
|
조회 658
|
|
|
|
14년 전
|
조회 693
|
|
|
|
14년 전
|
조회 1,109
|
|
|
|
14년 전
|
조회 1,135
|
|
|
|
14년 전
|
조회 1,723
|
|
|
|
14년 전
|
조회 882
|
|
|
|
14년 전
|
조회 1,099
|
|
|
|
14년 전
|
조회 1,269
|
|
|
|
14년 전
|
조회 1,266
|
|
|
|
14년 전
|
조회 611
|
|
|
|
14년 전
|
조회 1,800
|
|
|
|
14년 전
|
조회 964
|
|
|
|
14년 전
|
조회 1,281
|
|
|
|
14년 전
|
조회 1,053
|
|
|
|
14년 전
|
조회 1,372
|
|
|
|
14년 전
|
조회 1,482
|
|
|
|
14년 전
|
조회 918
|
|
|
|
14년 전
|
조회 1,141
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 1,492
|
|
|
|
14년 전
|
조회 856
|
|
|
|
14년 전
|
조회 1,007
|
|
|
|
14년 전
|
조회 1,722
|
|
|
|
14년 전
|
조회 2,819
|
|
|
|
14년 전
|
조회 2,074
|
|
|
|
14년 전
|
조회 2,129
|
|
|
|
14년 전
|
조회 1,543
|
|
|
|
14년 전
|
조회 1,348
|
|
|
|
14년 전
|
조회 1,253
|
|
|
|
14년 전
|
조회 1,029
|
|
|
|
14년 전
|
조회 491
|
|
|
|
14년 전
|
조회 1,411
|
|
|
|
14년 전
|
조회 4,501
|
|
|
|
14년 전
|
조회 1,380
|
|
|
|
14년 전
|
조회 1,161
|
|
|
|
14년 전
|
조회 648
|
|
|
|
14년 전
|
조회 881
|
|
|
|
14년 전
|
조회 693
|
|
|
|
14년 전
|
조회 587
|
|
|
|
14년 전
|
조회 660
|
|
|
|
14년 전
|
조회 637
|
|
|
|
14년 전
|
조회 594
|
|
|
|
14년 전
|
조회 1,463
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 642
|
|
|
|
14년 전
|
조회 604
|
|
|
|
14년 전
|
조회 659
|
댓글 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