|
|
|
14년 전
|
조회 580
|
|
|
|
14년 전
|
조회 668
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 4,653
|
|
|
|
14년 전
|
조회 543
|
|
|
|
14년 전
|
조회 4,932
|
|
|
|
14년 전
|
조회 1,265
|
|
|
|
14년 전
|
조회 1,057
|
|
|
|
14년 전
|
조회 532
|
|
|
|
14년 전
|
조회 705
|
|
|
|
14년 전
|
조회 1,226
|
|
|
|
14년 전
|
조회 699
|
|
|
|
14년 전
|
조회 1,358
|
|
|
|
14년 전
|
조회 871
|
|
|
|
14년 전
|
조회 726
|
|
|
|
14년 전
|
조회 790
|
|
|
|
14년 전
|
조회 2,905
|
|
|
|
14년 전
|
조회 609
|
|
|
|
14년 전
|
조회 1,172
|
|
|
|
14년 전
|
조회 807
|
|
|
|
14년 전
|
조회 752
|
|
|
|
14년 전
|
조회 668
|
|
|
|
14년 전
|
조회 3,301
|
|
|
|
14년 전
|
조회 1,213
|
|
|
|
14년 전
|
조회 649
|
|
|
|
14년 전
|
조회 722
|
|
|
|
14년 전
|
조회 707
|
|
|
|
14년 전
|
조회 804
|
|
|
|
14년 전
|
조회 568
|
|
|
|
14년 전
|
조회 645
|
|
|
|
14년 전
|
조회 1,303
|
|
|
|
14년 전
|
조회 3,168
|
|
|
|
14년 전
|
조회 1,574
|
|
|
|
14년 전
|
조회 684
|
|
|
|
14년 전
|
조회 622
|
|
|
|
14년 전
|
조회 758
|
|
|
|
14년 전
|
조회 623
|
|
|
|
14년 전
|
조회 724
|
|
|
|
14년 전
|
조회 836
|
|
|
|
14년 전
|
조회 648
|
|
|
|
14년 전
|
조회 3,125
|
|
|
|
14년 전
|
조회 3,040
|
|
|
|
14년 전
|
조회 839
|
|
|
|
14년 전
|
조회 1,337
|
|
|
|
14년 전
|
조회 964
|
|
|
|
14년 전
|
조회 814
|
|
|
|
14년 전
|
조회 3,369
|
|
|
|
14년 전
|
조회 2,372
|
|
|
|
14년 전
|
조회 1,959
|
|
|
|
14년 전
|
조회 1,878
|
|
|
|
14년 전
|
조회 646
|
|
|
|
14년 전
|
조회 1,407
|
|
|
|
14년 전
|
조회 660
|
|
|
|
14년 전
|
조회 566
|
|
|
|
14년 전
|
조회 599
|
|
|
|
14년 전
|
조회 1,003
|
|
|
|
14년 전
|
조회 1,042
|
|
|
|
14년 전
|
조회 1,625
|
|
|
|
14년 전
|
조회 794
|
|
|
|
14년 전
|
조회 1,002
|
|
|
|
14년 전
|
조회 1,169
|
|
|
|
14년 전
|
조회 1,169
|
|
|
|
14년 전
|
조회 522
|
|
|
|
14년 전
|
조회 1,701
|
|
|
|
14년 전
|
조회 878
|
|
|
|
14년 전
|
조회 1,177
|
|
|
|
14년 전
|
조회 960
|
|
|
|
14년 전
|
조회 1,278
|
|
|
|
14년 전
|
조회 1,395
|
|
|
|
14년 전
|
조회 817
|
|
|
|
14년 전
|
조회 1,040
|
|
|
|
14년 전
|
조회 1,318
|
|
|
|
14년 전
|
조회 1,390
|
|
|
|
14년 전
|
조회 772
|
|
|
|
14년 전
|
조회 918
|
|
|
|
14년 전
|
조회 1,632
|
|
|
|
14년 전
|
조회 2,727
|
|
|
|
14년 전
|
조회 1,980
|
|
|
|
14년 전
|
조회 2,041
|
|
|
|
14년 전
|
조회 1,445
|
|
|
|
14년 전
|
조회 1,255
|
|
|
|
14년 전
|
조회 1,157
|
|
|
|
14년 전
|
조회 938
|
|
|
|
14년 전
|
조회 402
|
|
|
|
14년 전
|
조회 1,317
|
|
|
|
14년 전
|
조회 4,424
|
|
|
|
14년 전
|
조회 1,289
|
|
|
|
14년 전
|
조회 1,055
|
|
|
|
14년 전
|
조회 558
|
|
|
|
14년 전
|
조회 784
|
|
|
|
14년 전
|
조회 607
|
|
|
|
14년 전
|
조회 489
|
|
|
|
14년 전
|
조회 566
|
|
|
|
14년 전
|
조회 553
|
|
|
|
14년 전
|
조회 495
|
|
|
|
14년 전
|
조회 1,367
|
|
|
|
14년 전
|
조회 684
|
|
|
|
14년 전
|
조회 539
|
|
|
|
14년 전
|
조회 515
|
|
|
|
14년 전
|
조회 572
|
댓글 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