|
|
|
14년 전
|
조회 671
|
|
|
|
14년 전
|
조회 758
|
|
|
|
14년 전
|
조회 667
|
|
|
|
14년 전
|
조회 4,753
|
|
|
|
14년 전
|
조회 643
|
|
|
|
14년 전
|
조회 5,031
|
|
|
|
14년 전
|
조회 1,343
|
|
|
|
14년 전
|
조회 1,140
|
|
|
|
14년 전
|
조회 617
|
|
|
|
14년 전
|
조회 800
|
|
|
|
14년 전
|
조회 1,317
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 1,451
|
|
|
|
14년 전
|
조회 960
|
|
|
|
14년 전
|
조회 785
|
|
|
|
14년 전
|
조회 888
|
|
|
|
14년 전
|
조회 2,967
|
|
|
|
14년 전
|
조회 700
|
|
|
|
14년 전
|
조회 1,257
|
|
|
|
14년 전
|
조회 901
|
|
|
|
14년 전
|
조회 841
|
|
|
|
14년 전
|
조회 746
|
|
|
|
14년 전
|
조회 3,387
|
|
|
|
14년 전
|
조회 1,314
|
|
|
|
14년 전
|
조회 740
|
|
|
|
14년 전
|
조회 819
|
|
|
|
14년 전
|
조회 795
|
|
|
|
14년 전
|
조회 903
|
|
|
|
14년 전
|
조회 671
|
|
|
|
14년 전
|
조회 735
|
|
|
|
14년 전
|
조회 1,399
|
|
|
|
14년 전
|
조회 3,250
|
|
|
|
14년 전
|
조회 1,669
|
|
|
|
14년 전
|
조회 768
|
|
|
|
14년 전
|
조회 715
|
|
|
|
14년 전
|
조회 840
|
|
|
|
14년 전
|
조회 720
|
|
|
|
14년 전
|
조회 820
|
|
|
|
14년 전
|
조회 928
|
|
|
|
14년 전
|
조회 730
|
|
|
|
14년 전
|
조회 3,223
|
|
|
|
14년 전
|
조회 3,124
|
|
|
|
14년 전
|
조회 914
|
|
|
|
14년 전
|
조회 1,431
|
|
|
|
14년 전
|
조회 1,051
|
|
|
|
14년 전
|
조회 903
|
|
|
|
14년 전
|
조회 3,453
|
|
|
|
14년 전
|
조회 2,443
|
|
|
|
14년 전
|
조회 2,044
|
|
|
|
14년 전
|
조회 1,962
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 1,496
|
|
|
|
14년 전
|
조회 744
|
|
|
|
14년 전
|
조회 638
|
|
|
|
14년 전
|
조회 677
|
|
|
|
14년 전
|
조회 1,096
|
|
|
|
14년 전
|
조회 1,130
|
|
|
|
14년 전
|
조회 1,711
|
|
|
|
14년 전
|
조회 868
|
|
|
|
14년 전
|
조회 1,087
|
|
|
|
14년 전
|
조회 1,262
|
|
|
|
14년 전
|
조회 1,255
|
|
|
|
14년 전
|
조회 604
|
|
|
|
14년 전
|
조회 1,787
|
|
|
|
14년 전
|
조회 950
|
|
|
|
14년 전
|
조회 1,270
|
|
|
|
14년 전
|
조회 1,044
|
|
|
|
14년 전
|
조회 1,361
|
|
|
|
14년 전
|
조회 1,472
|
|
|
|
14년 전
|
조회 902
|
|
|
|
14년 전
|
조회 1,125
|
|
|
|
14년 전
|
조회 1,395
|
|
|
|
14년 전
|
조회 1,476
|
|
|
|
14년 전
|
조회 841
|
|
|
|
14년 전
|
조회 993
|
|
|
|
14년 전
|
조회 1,710
|
|
|
|
14년 전
|
조회 2,807
|
|
|
|
14년 전
|
조회 2,058
|
|
|
|
14년 전
|
조회 2,116
|
|
|
|
14년 전
|
조회 1,528
|
|
|
|
14년 전
|
조회 1,340
|
|
|
|
14년 전
|
조회 1,241
|
|
|
|
14년 전
|
조회 1,013
|
|
|
|
14년 전
|
조회 483
|
|
|
|
14년 전
|
조회 1,401
|
|
|
|
14년 전
|
조회 4,487
|
|
|
|
14년 전
|
조회 1,367
|
|
|
|
14년 전
|
조회 1,142
|
|
|
|
14년 전
|
조회 630
|
|
|
|
14년 전
|
조회 868
|
|
|
|
14년 전
|
조회 683
|
|
|
|
14년 전
|
조회 579
|
|
|
|
14년 전
|
조회 651
|
|
|
|
14년 전
|
조회 628
|
|
|
|
14년 전
|
조회 576
|
|
|
|
14년 전
|
조회 1,449
|
|
|
|
14년 전
|
조회 770
|
|
|
|
14년 전
|
조회 631
|
|
|
|
14년 전
|
조회 599
|
|
|
|
14년 전
|
조회 646
|
댓글 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