|
|
|
14년 전
|
조회 589
|
|
|
|
14년 전
|
조회 672
|
|
|
|
14년 전
|
조회 585
|
|
|
|
14년 전
|
조회 4,664
|
|
|
|
14년 전
|
조회 551
|
|
|
|
14년 전
|
조회 4,942
|
|
|
|
14년 전
|
조회 1,270
|
|
|
|
14년 전
|
조회 1,067
|
|
|
|
14년 전
|
조회 542
|
|
|
|
14년 전
|
조회 715
|
|
|
|
14년 전
|
조회 1,229
|
|
|
|
14년 전
|
조회 705
|
|
|
|
14년 전
|
조회 1,366
|
|
|
|
14년 전
|
조회 877
|
|
|
|
14년 전
|
조회 729
|
|
|
|
14년 전
|
조회 801
|
|
|
|
14년 전
|
조회 2,906
|
|
|
|
14년 전
|
조회 615
|
|
|
|
14년 전
|
조회 1,174
|
|
|
|
14년 전
|
조회 817
|
|
|
|
14년 전
|
조회 761
|
|
|
|
14년 전
|
조회 672
|
|
|
|
14년 전
|
조회 3,305
|
|
|
|
14년 전
|
조회 1,225
|
|
|
|
14년 전
|
조회 661
|
|
|
|
14년 전
|
조회 732
|
|
|
|
14년 전
|
조회 719
|
|
|
|
14년 전
|
조회 814
|
|
|
|
14년 전
|
조회 577
|
|
|
|
14년 전
|
조회 654
|
|
|
|
14년 전
|
조회 1,312
|
|
|
|
14년 전
|
조회 3,177
|
|
|
|
14년 전
|
조회 1,582
|
|
|
|
14년 전
|
조회 691
|
|
|
|
14년 전
|
조회 631
|
|
|
|
14년 전
|
조회 761
|
|
|
|
14년 전
|
조회 634
|
|
|
|
14년 전
|
조회 730
|
|
|
|
14년 전
|
조회 843
|
|
|
|
14년 전
|
조회 652
|
|
|
|
14년 전
|
조회 3,135
|
|
|
|
14년 전
|
조회 3,050
|
|
|
|
14년 전
|
조회 846
|
|
|
|
14년 전
|
조회 1,350
|
|
|
|
14년 전
|
조회 970
|
|
|
|
14년 전
|
조회 820
|
|
|
|
14년 전
|
조회 3,376
|
|
|
|
14년 전
|
조회 2,375
|
|
|
|
14년 전
|
조회 1,965
|
|
|
|
14년 전
|
조회 1,889
|
|
|
|
14년 전
|
조회 656
|
|
|
|
14년 전
|
조회 1,416
|
|
|
|
14년 전
|
조회 669
|
|
|
|
14년 전
|
조회 578
|
|
|
|
14년 전
|
조회 606
|
|
|
|
14년 전
|
조회 1,016
|
|
|
|
14년 전
|
조회 1,052
|
|
|
|
14년 전
|
조회 1,636
|
|
|
|
14년 전
|
조회 804
|
|
|
|
14년 전
|
조회 1,012
|
|
|
|
14년 전
|
조회 1,178
|
|
|
|
14년 전
|
조회 1,175
|
|
|
|
14년 전
|
조회 531
|
|
|
|
14년 전
|
조회 1,711
|
|
|
|
14년 전
|
조회 886
|
|
|
|
14년 전
|
조회 1,185
|
|
|
|
14년 전
|
조회 963
|
|
|
|
14년 전
|
조회 1,288
|
|
|
|
14년 전
|
조회 1,404
|
|
|
|
14년 전
|
조회 824
|
|
|
|
14년 전
|
조회 1,047
|
|
|
|
14년 전
|
조회 1,328
|
|
|
|
14년 전
|
조회 1,400
|
|
|
|
14년 전
|
조회 775
|
|
|
|
14년 전
|
조회 921
|
|
|
|
14년 전
|
조회 1,635
|
|
|
|
14년 전
|
조회 2,735
|
|
|
|
14년 전
|
조회 1,991
|
|
|
|
14년 전
|
조회 2,050
|
|
|
|
14년 전
|
조회 1,453
|
|
|
|
14년 전
|
조회 1,261
|
|
|
|
14년 전
|
조회 1,162
|
|
|
|
14년 전
|
조회 941
|
|
|
|
14년 전
|
조회 411
|
|
|
|
14년 전
|
조회 1,324
|
|
|
|
14년 전
|
조회 4,430
|
|
|
|
14년 전
|
조회 1,299
|
|
|
|
14년 전
|
조회 1,064
|
|
|
|
14년 전
|
조회 562
|
|
|
|
14년 전
|
조회 787
|
|
|
|
14년 전
|
조회 614
|
|
|
|
14년 전
|
조회 499
|
|
|
|
14년 전
|
조회 577
|
|
|
|
14년 전
|
조회 561
|
|
|
|
14년 전
|
조회 499
|
|
|
|
14년 전
|
조회 1,373
|
|
|
|
14년 전
|
조회 692
|
|
|
|
14년 전
|
조회 550
|
|
|
|
14년 전
|
조회 524
|
|
|
|
14년 전
|
조회 582
|
댓글 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