|
|
|
14년 전
|
조회 592
|
|
|
|
14년 전
|
조회 673
|
|
|
|
14년 전
|
조회 587
|
|
|
|
14년 전
|
조회 4,664
|
|
|
|
14년 전
|
조회 553
|
|
|
|
14년 전
|
조회 4,943
|
|
|
|
14년 전
|
조회 1,271
|
|
|
|
14년 전
|
조회 1,068
|
|
|
|
14년 전
|
조회 543
|
|
|
|
14년 전
|
조회 715
|
|
|
|
14년 전
|
조회 1,232
|
|
|
|
14년 전
|
조회 706
|
|
|
|
14년 전
|
조회 1,369
|
|
|
|
14년 전
|
조회 881
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 802
|
|
|
|
14년 전
|
조회 2,908
|
|
|
|
14년 전
|
조회 618
|
|
|
|
14년 전
|
조회 1,177
|
|
|
|
14년 전
|
조회 818
|
|
|
|
14년 전
|
조회 763
|
|
|
|
14년 전
|
조회 672
|
|
|
|
14년 전
|
조회 3,308
|
|
|
|
14년 전
|
조회 1,226
|
|
|
|
14년 전
|
조회 662
|
|
|
|
14년 전
|
조회 734
|
|
|
|
14년 전
|
조회 720
|
|
|
|
14년 전
|
조회 815
|
|
|
|
14년 전
|
조회 578
|
|
|
|
14년 전
|
조회 655
|
|
|
|
14년 전
|
조회 1,315
|
|
|
|
14년 전
|
조회 3,178
|
|
|
|
14년 전
|
조회 1,584
|
|
|
|
14년 전
|
조회 692
|
|
|
|
14년 전
|
조회 634
|
|
|
|
14년 전
|
조회 762
|
|
|
|
14년 전
|
조회 634
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 845
|
|
|
|
14년 전
|
조회 654
|
|
|
|
14년 전
|
조회 3,137
|
|
|
|
14년 전
|
조회 3,052
|
|
|
|
14년 전
|
조회 847
|
|
|
|
14년 전
|
조회 1,352
|
|
|
|
14년 전
|
조회 973
|
|
|
|
14년 전
|
조회 821
|
|
|
|
14년 전
|
조회 3,378
|
|
|
|
14년 전
|
조회 2,376
|
|
|
|
14년 전
|
조회 1,969
|
|
|
|
14년 전
|
조회 1,891
|
|
|
|
14년 전
|
조회 658
|
|
|
|
14년 전
|
조회 1,417
|
|
|
|
14년 전
|
조회 672
|
|
|
|
14년 전
|
조회 580
|
|
|
|
14년 전
|
조회 608
|
|
|
|
14년 전
|
조회 1,018
|
|
|
|
14년 전
|
조회 1,054
|
|
|
|
14년 전
|
조회 1,639
|
|
|
|
14년 전
|
조회 805
|
|
|
|
14년 전
|
조회 1,013
|
|
|
|
14년 전
|
조회 1,180
|
|
|
|
14년 전
|
조회 1,176
|
|
|
|
14년 전
|
조회 532
|
|
|
|
14년 전
|
조회 1,712
|
|
|
|
14년 전
|
조회 888
|
|
|
|
14년 전
|
조회 1,187
|
|
|
|
14년 전
|
조회 964
|
|
|
|
14년 전
|
조회 1,288
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 826
|
|
|
|
14년 전
|
조회 1,049
|
|
|
|
14년 전
|
조회 1,329
|
|
|
|
14년 전
|
조회 1,400
|
|
|
|
14년 전
|
조회 776
|
|
|
|
14년 전
|
조회 926
|
|
|
|
14년 전
|
조회 1,636
|
|
|
|
14년 전
|
조회 2,735
|
|
|
|
14년 전
|
조회 1,992
|
|
|
|
14년 전
|
조회 2,052
|
|
|
|
14년 전
|
조회 1,455
|
|
|
|
14년 전
|
조회 1,262
|
|
|
|
14년 전
|
조회 1,165
|
|
|
|
14년 전
|
조회 943
|
|
|
|
14년 전
|
조회 413
|
|
|
|
14년 전
|
조회 1,326
|
|
|
|
14년 전
|
조회 4,431
|
|
|
|
14년 전
|
조회 1,300
|
|
|
|
14년 전
|
조회 1,065
|
|
|
|
14년 전
|
조회 563
|
|
|
|
14년 전
|
조회 789
|
|
|
|
14년 전
|
조회 615
|
|
|
|
14년 전
|
조회 500
|
|
|
|
14년 전
|
조회 577
|
|
|
|
14년 전
|
조회 562
|
|
|
|
14년 전
|
조회 501
|
|
|
|
14년 전
|
조회 1,374
|
|
|
|
14년 전
|
조회 696
|
|
|
|
14년 전
|
조회 551
|
|
|
|
14년 전
|
조회 526
|
|
|
|
14년 전
|
조회 583
|
댓글 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