|
|
|
14년 전
|
조회 735
|
|
|
|
14년 전
|
조회 818
|
|
|
|
14년 전
|
조회 726
|
|
|
|
14년 전
|
조회 4,805
|
|
|
|
14년 전
|
조회 707
|
|
|
|
14년 전
|
조회 5,089
|
|
|
|
14년 전
|
조회 1,401
|
|
|
|
14년 전
|
조회 1,200
|
|
|
|
14년 전
|
조회 685
|
|
|
|
14년 전
|
조회 875
|
|
|
|
14년 전
|
조회 1,378
|
|
|
|
14년 전
|
조회 856
|
|
|
|
14년 전
|
조회 1,502
|
|
|
|
14년 전
|
조회 1,028
|
|
|
|
14년 전
|
조회 857
|
|
|
|
14년 전
|
조회 953
|
|
|
|
14년 전
|
조회 3,024
|
|
|
|
14년 전
|
조회 762
|
|
|
|
14년 전
|
조회 1,331
|
|
|
|
14년 전
|
조회 963
|
|
|
|
14년 전
|
조회 893
|
|
|
|
14년 전
|
조회 812
|
|
|
|
14년 전
|
조회 3,464
|
|
|
|
14년 전
|
조회 1,370
|
|
|
|
14년 전
|
조회 807
|
|
|
|
14년 전
|
조회 871
|
|
|
|
14년 전
|
조회 865
|
|
|
|
14년 전
|
조회 962
|
|
|
|
14년 전
|
조회 726
|
|
|
|
14년 전
|
조회 803
|
|
|
|
14년 전
|
조회 1,453
|
|
|
|
14년 전
|
조회 3,321
|
|
|
|
14년 전
|
조회 1,723
|
|
|
|
14년 전
|
조회 815
|
|
|
|
14년 전
|
조회 786
|
|
|
|
14년 전
|
조회 909
|
|
|
|
14년 전
|
조회 772
|
|
|
|
14년 전
|
조회 881
|
|
|
|
14년 전
|
조회 1,000
|
|
|
|
14년 전
|
조회 801
|
|
|
|
14년 전
|
조회 3,295
|
|
|
|
14년 전
|
조회 3,202
|
|
|
|
14년 전
|
조회 991
|
|
|
|
14년 전
|
조회 1,503
|
|
|
|
14년 전
|
조회 1,128
|
|
|
|
14년 전
|
조회 975
|
|
|
|
14년 전
|
조회 3,526
|
|
|
|
14년 전
|
조회 2,514
|
|
|
|
14년 전
|
조회 2,115
|
|
|
|
14년 전
|
조회 2,030
|
|
|
|
14년 전
|
조회 798
|
|
|
|
14년 전
|
조회 1,563
|
|
|
|
14년 전
|
조회 801
|
|
|
|
14년 전
|
조회 714
|
|
|
|
14년 전
|
조회 743
|
|
|
|
14년 전
|
조회 1,163
|
|
|
|
14년 전
|
조회 1,192
|
|
|
|
14년 전
|
조회 1,771
|
|
|
|
14년 전
|
조회 925
|
|
|
|
14년 전
|
조회 1,156
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 1,323
|
|
|
|
14년 전
|
조회 671
|
|
|
|
14년 전
|
조회 1,851
|
|
|
|
14년 전
|
조회 1,024
|
|
|
|
14년 전
|
조회 1,327
|
|
|
|
14년 전
|
조회 1,105
|
|
|
|
14년 전
|
조회 1,423
|
|
|
|
14년 전
|
조회 1,538
|
|
|
|
14년 전
|
조회 971
|
|
|
|
14년 전
|
조회 1,190
|
|
|
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 1,544
|
|
|
|
14년 전
|
조회 922
|
|
|
|
14년 전
|
조회 1,072
|
|
|
|
14년 전
|
조회 1,780
|
|
|
|
14년 전
|
조회 2,871
|
|
|
|
14년 전
|
조회 2,111
|
|
|
|
14년 전
|
조회 2,174
|
|
|
|
14년 전
|
조회 1,611
|
|
|
|
14년 전
|
조회 1,407
|
|
|
|
14년 전
|
조회 1,312
|
|
|
|
14년 전
|
조회 1,088
|
|
|
|
14년 전
|
조회 550
|
|
|
|
14년 전
|
조회 1,471
|
|
|
|
14년 전
|
조회 4,560
|
|
|
|
14년 전
|
조회 1,429
|
|
|
|
14년 전
|
조회 1,204
|
|
|
|
14년 전
|
조회 711
|
|
|
|
14년 전
|
조회 944
|
|
|
|
14년 전
|
조회 754
|
|
|
|
14년 전
|
조회 631
|
|
|
|
14년 전
|
조회 706
|
|
|
|
14년 전
|
조회 702
|
|
|
|
14년 전
|
조회 647
|
|
|
|
14년 전
|
조회 1,525
|
|
|
|
14년 전
|
조회 825
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 647
|
|
|
|
14년 전
|
조회 717
|
댓글 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