|
|
|
14년 전
|
조회 586
|
|
|
|
14년 전
|
조회 672
|
|
|
|
14년 전
|
조회 584
|
|
|
|
14년 전
|
조회 4,663
|
|
|
|
14년 전
|
조회 548
|
|
|
|
14년 전
|
조회 4,939
|
|
|
|
14년 전
|
조회 1,270
|
|
|
|
14년 전
|
조회 1,064
|
|
|
|
14년 전
|
조회 538
|
|
|
|
14년 전
|
조회 713
|
|
|
|
14년 전
|
조회 1,229
|
|
|
|
14년 전
|
조회 704
|
|
|
|
14년 전
|
조회 1,364
|
|
|
|
14년 전
|
조회 876
|
|
|
|
14년 전
|
조회 728
|
|
|
|
14년 전
|
조회 799
|
|
|
|
14년 전
|
조회 2,906
|
|
|
|
14년 전
|
조회 615
|
|
|
|
14년 전
|
조회 1,174
|
|
|
|
14년 전
|
조회 814
|
|
|
|
14년 전
|
조회 759
|
|
|
|
14년 전
|
조회 671
|
|
|
|
14년 전
|
조회 3,305
|
|
|
|
14년 전
|
조회 1,225
|
|
|
|
14년 전
|
조회 659
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 717
|
|
|
|
14년 전
|
조회 814
|
|
|
|
14년 전
|
조회 577
|
|
|
|
14년 전
|
조회 654
|
|
|
|
14년 전
|
조회 1,311
|
|
|
|
14년 전
|
조회 3,176
|
|
|
|
14년 전
|
조회 1,582
|
|
|
|
14년 전
|
조회 690
|
|
|
|
14년 전
|
조회 631
|
|
|
|
14년 전
|
조회 761
|
|
|
|
14년 전
|
조회 632
|
|
|
|
14년 전
|
조회 730
|
|
|
|
14년 전
|
조회 842
|
|
|
|
14년 전
|
조회 652
|
|
|
|
14년 전
|
조회 3,133
|
|
|
|
14년 전
|
조회 3,048
|
|
|
|
14년 전
|
조회 845
|
|
|
|
14년 전
|
조회 1,348
|
|
|
|
14년 전
|
조회 969
|
|
|
|
14년 전
|
조회 819
|
|
|
|
14년 전
|
조회 3,375
|
|
|
|
14년 전
|
조회 2,374
|
|
|
|
14년 전
|
조회 1,964
|
|
|
|
14년 전
|
조회 1,886
|
|
|
|
14년 전
|
조회 656
|
|
|
|
14년 전
|
조회 1,415
|
|
|
|
14년 전
|
조회 667
|
|
|
|
14년 전
|
조회 577
|
|
|
|
14년 전
|
조회 606
|
|
|
|
14년 전
|
조회 1,014
|
|
|
|
14년 전
|
조회 1,052
|
|
|
|
14년 전
|
조회 1,635
|
|
|
|
14년 전
|
조회 803
|
|
|
|
14년 전
|
조회 1,011
|
|
|
|
14년 전
|
조회 1,178
|
|
|
|
14년 전
|
조회 1,174
|
|
|
|
14년 전
|
조회 531
|
|
|
|
14년 전
|
조회 1,711
|
|
|
|
14년 전
|
조회 885
|
|
|
|
14년 전
|
조회 1,183
|
|
|
|
14년 전
|
조회 962
|
|
|
|
14년 전
|
조회 1,288
|
|
|
|
14년 전
|
조회 1,403
|
|
|
|
14년 전
|
조회 823
|
|
|
|
14년 전
|
조회 1,046
|
|
|
|
14년 전
|
조회 1,327
|
|
|
|
14년 전
|
조회 1,399
|
|
|
|
14년 전
|
조회 775
|
|
|
|
14년 전
|
조회 921
|
|
|
|
14년 전
|
조회 1,634
|
|
|
|
14년 전
|
조회 2,735
|
|
|
|
14년 전
|
조회 1,991
|
|
|
|
14년 전
|
조회 2,050
|
|
|
|
14년 전
|
조회 1,452
|
|
|
|
14년 전
|
조회 1,260
|
|
|
|
14년 전
|
조회 1,162
|
|
|
|
14년 전
|
조회 941
|
|
|
|
14년 전
|
조회 411
|
|
|
|
14년 전
|
조회 1,322
|
|
|
|
14년 전
|
조회 4,429
|
|
|
|
14년 전
|
조회 1,298
|
|
|
|
14년 전
|
조회 1,063
|
|
|
|
14년 전
|
조회 561
|
|
|
|
14년 전
|
조회 787
|
|
|
|
14년 전
|
조회 613
|
|
|
|
14년 전
|
조회 497
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 560
|
|
|
|
14년 전
|
조회 499
|
|
|
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 692
|
|
|
|
14년 전
|
조회 550
|
|
|
|
14년 전
|
조회 523
|
|
|
|
14년 전
|
조회 581
|
댓글 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