|
|
|
14년 전
|
조회 710
|
|
|
|
14년 전
|
조회 793
|
|
|
|
14년 전
|
조회 703
|
|
|
|
14년 전
|
조회 4,779
|
|
|
|
14년 전
|
조회 676
|
|
|
|
14년 전
|
조회 5,057
|
|
|
|
14년 전
|
조회 1,376
|
|
|
|
14년 전
|
조회 1,173
|
|
|
|
14년 전
|
조회 641
|
|
|
|
14년 전
|
조회 835
|
|
|
|
14년 전
|
조회 1,347
|
|
|
|
14년 전
|
조회 823
|
|
|
|
14년 전
|
조회 1,473
|
|
|
|
14년 전
|
조회 989
|
|
|
|
14년 전
|
조회 827
|
|
|
|
14년 전
|
조회 924
|
|
|
|
14년 전
|
조회 2,998
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 1,292
|
|
|
|
14년 전
|
조회 933
|
|
|
|
14년 전
|
조회 872
|
|
|
|
14년 전
|
조회 780
|
|
|
|
14년 전
|
조회 3,421
|
|
|
|
14년 전
|
조회 1,340
|
|
|
|
14년 전
|
조회 767
|
|
|
|
14년 전
|
조회 848
|
|
|
|
14년 전
|
조회 835
|
|
|
|
14년 전
|
조회 931
|
|
|
|
14년 전
|
조회 694
|
|
|
|
14년 전
|
조회 766
|
|
|
|
14년 전
|
조회 1,424
|
|
|
|
14년 전
|
조회 3,294
|
|
|
|
14년 전
|
조회 1,697
|
|
|
|
14년 전
|
조회 790
|
|
|
|
14년 전
|
조회 745
|
|
|
|
14년 전
|
조회 875
|
|
|
|
14년 전
|
조회 743
|
|
|
|
14년 전
|
조회 849
|
|
|
|
14년 전
|
조회 956
|
|
|
|
14년 전
|
조회 770
|
|
|
|
14년 전
|
조회 3,259
|
|
|
|
14년 전
|
조회 3,161
|
|
|
|
14년 전
|
조회 960
|
|
|
|
14년 전
|
조회 1,462
|
|
|
|
14년 전
|
조회 1,090
|
|
|
|
14년 전
|
조회 942
|
|
|
|
14년 전
|
조회 3,483
|
|
|
|
14년 전
|
조회 2,479
|
|
|
|
14년 전
|
조회 2,076
|
|
|
|
14년 전
|
조회 1,996
|
|
|
|
14년 전
|
조회 763
|
|
|
|
14년 전
|
조회 1,526
|
|
|
|
14년 전
|
조회 773
|
|
|
|
14년 전
|
조회 686
|
|
|
|
14년 전
|
조회 717
|
|
|
|
14년 전
|
조회 1,128
|
|
|
|
14년 전
|
조회 1,152
|
|
|
|
14년 전
|
조회 1,742
|
|
|
|
14년 전
|
조회 900
|
|
|
|
14년 전
|
조회 1,124
|
|
|
|
14년 전
|
조회 1,285
|
|
|
|
14년 전
|
조회 1,281
|
|
|
|
14년 전
|
조회 637
|
|
|
|
14년 전
|
조회 1,815
|
|
|
|
14년 전
|
조회 987
|
|
|
|
14년 전
|
조회 1,298
|
|
|
|
14년 전
|
조회 1,071
|
|
|
|
14년 전
|
조회 1,396
|
|
|
|
14년 전
|
조회 1,501
|
|
|
|
14년 전
|
조회 932
|
|
|
|
14년 전
|
조회 1,157
|
|
|
|
14년 전
|
조회 1,421
|
|
|
|
14년 전
|
조회 1,509
|
|
|
|
14년 전
|
조회 877
|
|
|
|
14년 전
|
조회 1,033
|
|
|
|
14년 전
|
조회 1,742
|
|
|
|
14년 전
|
조회 2,838
|
|
|
|
14년 전
|
조회 2,086
|
|
|
|
14년 전
|
조회 2,145
|
|
|
|
14년 전
|
조회 1,564
|
|
|
|
14년 전
|
조회 1,365
|
|
|
|
14년 전
|
조회 1,279
|
|
|
|
14년 전
|
조회 1,047
|
|
|
|
14년 전
|
조회 511
|
|
|
|
14년 전
|
조회 1,431
|
|
|
|
14년 전
|
조회 4,525
|
|
|
|
14년 전
|
조회 1,400
|
|
|
|
14년 전
|
조회 1,175
|
|
|
|
14년 전
|
조회 682
|
|
|
|
14년 전
|
조회 901
|
|
|
|
14년 전
|
조회 717
|
|
|
|
14년 전
|
조회 601
|
|
|
|
14년 전
|
조회 675
|
|
|
|
14년 전
|
조회 661
|
|
|
|
14년 전
|
조회 615
|
|
|
|
14년 전
|
조회 1,491
|
|
|
|
14년 전
|
조회 795
|
|
|
|
14년 전
|
조회 662
|
|
|
|
14년 전
|
조회 617
|
|
|
|
14년 전
|
조회 681
|
댓글 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