|
|
|
14년 전
|
조회 629
|
|
|
|
14년 전
|
조회 718
|
|
|
|
14년 전
|
조회 625
|
|
|
|
14년 전
|
조회 4,711
|
|
|
|
14년 전
|
조회 597
|
|
|
|
14년 전
|
조회 4,991
|
|
|
|
14년 전
|
조회 1,300
|
|
|
|
14년 전
|
조회 1,104
|
|
|
|
14년 전
|
조회 571
|
|
|
|
14년 전
|
조회 752
|
|
|
|
14년 전
|
조회 1,272
|
|
|
|
14년 전
|
조회 745
|
|
|
|
14년 전
|
조회 1,406
|
|
|
|
14년 전
|
조회 917
|
|
|
|
14년 전
|
조회 756
|
|
|
|
14년 전
|
조회 835
|
|
|
|
14년 전
|
조회 2,942
|
|
|
|
14년 전
|
조회 656
|
|
|
|
14년 전
|
조회 1,219
|
|
|
|
14년 전
|
조회 850
|
|
|
|
14년 전
|
조회 797
|
|
|
|
14년 전
|
조회 711
|
|
|
|
14년 전
|
조회 3,347
|
|
|
|
14년 전
|
조회 1,269
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 766
|
|
|
|
14년 전
|
조회 754
|
|
|
|
14년 전
|
조회 853
|
|
|
|
14년 전
|
조회 622
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 1,344
|
|
|
|
14년 전
|
조회 3,212
|
|
|
|
14년 전
|
조회 1,619
|
|
|
|
14년 전
|
조회 730
|
|
|
|
14년 전
|
조회 675
|
|
|
|
14년 전
|
조회 801
|
|
|
|
14년 전
|
조회 668
|
|
|
|
14년 전
|
조회 769
|
|
|
|
14년 전
|
조회 885
|
|
|
|
14년 전
|
조회 683
|
|
|
|
14년 전
|
조회 3,176
|
|
|
|
14년 전
|
조회 3,084
|
|
|
|
14년 전
|
조회 877
|
|
|
|
14년 전
|
조회 1,392
|
|
|
|
14년 전
|
조회 1,007
|
|
|
|
14년 전
|
조회 865
|
|
|
|
14년 전
|
조회 3,409
|
|
|
|
14년 전
|
조회 2,405
|
|
|
|
14년 전
|
조회 2,006
|
|
|
|
14년 전
|
조회 1,916
|
|
|
|
14년 전
|
조회 701
|
|
|
|
14년 전
|
조회 1,455
|
|
|
|
14년 전
|
조회 701
|
|
|
|
14년 전
|
조회 599
|
|
|
|
14년 전
|
조회 633
|
|
|
|
14년 전
|
조회 1,056
|
|
|
|
14년 전
|
조회 1,091
|
|
|
|
14년 전
|
조회 1,671
|
|
|
|
14년 전
|
조회 836
|
|
|
|
14년 전
|
조회 1,050
|
|
|
|
14년 전
|
조회 1,215
|
|
|
|
14년 전
|
조회 1,218
|
|
|
|
14년 전
|
조회 560
|
|
|
|
14년 전
|
조회 1,742
|
|
|
|
14년 전
|
조회 920
|
|
|
|
14년 전
|
조회 1,221
|
|
|
|
14년 전
|
조회 994
|
|
|
|
14년 전
|
조회 1,322
|
|
|
|
14년 전
|
조회 1,430
|
|
|
|
14년 전
|
조회 862
|
|
|
|
14년 전
|
조회 1,083
|
|
|
|
14년 전
|
조회 1,368
|
|
|
|
14년 전
|
조회 1,428
|
|
|
|
14년 전
|
조회 806
|
|
|
|
14년 전
|
조회 953
|
|
|
|
14년 전
|
조회 1,667
|
|
|
|
14년 전
|
조회 2,766
|
|
|
|
14년 전
|
조회 2,022
|
|
|
|
14년 전
|
조회 2,083
|
|
|
|
14년 전
|
조회 1,479
|
|
|
|
14년 전
|
조회 1,302
|
|
|
|
14년 전
|
조회 1,190
|
|
|
|
14년 전
|
조회 978
|
|
|
|
14년 전
|
조회 439
|
|
|
|
14년 전
|
조회 1,357
|
|
|
|
14년 전
|
조회 4,460
|
|
|
|
14년 전
|
조회 1,331
|
|
|
|
14년 전
|
조회 1,101
|
|
|
|
14년 전
|
조회 593
|
|
|
|
14년 전
|
조회 823
|
|
|
|
14년 전
|
조회 640
|
|
|
|
14년 전
|
조회 530
|
|
|
|
14년 전
|
조회 611
|
|
|
|
14년 전
|
조회 588
|
|
|
|
14년 전
|
조회 528
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 582
|
|
|
|
14년 전
|
조회 556
|
|
|
|
14년 전
|
조회 609
|
댓글 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