|
|
|
14년 전
|
조회 1,593
|
|
|
|
14년 전
|
조회 1,672
|
|
|
|
14년 전
|
조회 1,593
|
|
|
|
14년 전
|
조회 5,662
|
|
|
|
14년 전
|
조회 1,542
|
|
|
|
14년 전
|
조회 5,944
|
|
|
|
14년 전
|
조회 2,264
|
|
|
|
14년 전
|
조회 2,057
|
|
|
|
14년 전
|
조회 1,510
|
|
|
|
14년 전
|
조회 1,693
|
|
|
선택이란
|
14년 전
|
조회 2,234
|
|
|
|
14년 전
|
조회 1,706
|
|
|
|
14년 전
|
조회 2,364
|
|
|
|
14년 전
|
조회 1,879
|
|
|
|
14년 전
|
조회 1,654
|
|
|
|
14년 전
|
조회 1,802
|
|
|
|
14년 전
|
조회 3,846
|
|
|
|
14년 전
|
조회 1,602
|
|
|
|
14년 전
|
조회 2,197
|
|
|
|
14년 전
|
조회 1,799
|
|
|
|
14년 전
|
조회 1,760
|
|
|
|
14년 전
|
조회 1,619
|
|
|
|
14년 전
|
조회 4,292
|
|
|
|
14년 전
|
조회 2,212
|
|
|
|
14년 전
|
조회 1,656
|
|
|
|
14년 전
|
조회 1,740
|
|
|
|
14년 전
|
조회 1,734
|
|
|
|
14년 전
|
조회 1,801
|
|
|
|
14년 전
|
조회 1,571
|
|
|
|
14년 전
|
조회 1,657
|
|
|
|
14년 전
|
조회 2,306
|
|
|
선택이란
|
14년 전
|
조회 4,170
|
|
|
|
14년 전
|
조회 2,600
|
|
|
|
14년 전
|
조회 1,669
|
|
|
|
14년 전
|
조회 1,645
|
|
|
|
14년 전
|
조회 1,755
|
|
|
|
14년 전
|
조회 1,666
|
|
|
|
14년 전
|
조회 1,757
|
|
|
|
14년 전
|
조회 1,877
|
|
|
|
14년 전
|
조회 1,565
|
|
|
|
14년 전
|
조회 4,051
|
|
|
|
14년 전
|
조회 3,960
|
|
|
|
14년 전
|
조회 1,768
|
|
|
|
14년 전
|
조회 2,279
|
|
|
|
14년 전
|
조회 1,887
|
|
|
|
14년 전
|
조회 1,713
|
|
|
|
14년 전
|
조회 4,225
|
|
|
|
14년 전
|
조회 3,213
|
|
|
|
14년 전
|
조회 2,805
|
|
|
|
14년 전
|
조회 2,742
|
|
|
|
14년 전
|
조회 1,501
|
|
|
|
14년 전
|
조회 2,274
|
|
|
|
14년 전
|
조회 1,505
|
|
|
|
14년 전
|
조회 1,536
|
|
|
|
14년 전
|
조회 1,578
|
|
|
|
14년 전
|
조회 2,009
|
|
|
|
14년 전
|
조회 2,026
|
|
|
|
14년 전
|
조회 2,666
|
|
|
|
14년 전
|
조회 1,814
|
|
|
|
14년 전
|
조회 2,056
|
|
|
|
14년 전
|
조회 2,244
|
|
|
|
14년 전
|
조회 2,228
|
|
|
|
14년 전
|
조회 1,600
|
|
|
|
14년 전
|
조회 2,773
|
|
|
|
14년 전
|
조회 1,956
|
|
|
|
14년 전
|
조회 2,226
|
|
|
|
14년 전
|
조회 2,026
|
|
|
|
14년 전
|
조회 2,366
|
|
|
|
14년 전
|
조회 2,473
|
|
|
|
14년 전
|
조회 1,892
|
|
|
|
14년 전
|
조회 2,106
|
|
|
|
14년 전
|
조회 2,366
|
|
|
|
14년 전
|
조회 2,474
|
|
|
|
14년 전
|
조회 1,824
|
|
|
|
14년 전
|
조회 1,984
|
|
|
|
14년 전
|
조회 2,681
|
|
|
|
14년 전
|
조회 3,792
|
|
|
|
14년 전
|
조회 3,032
|
|
|
|
14년 전
|
조회 3,103
|
|
|
|
14년 전
|
조회 2,543
|
|
|
|
14년 전
|
조회 2,329
|
|
|
|
14년 전
|
조회 2,221
|
|
|
|
14년 전
|
조회 1,981
|
|
|
|
14년 전
|
조회 1,483
|
|
|
|
14년 전
|
조회 2,395
|
|
|
|
14년 전
|
조회 5,511
|
|
|
|
14년 전
|
조회 2,385
|
|
|
|
14년 전
|
조회 2,146
|
|
|
|
14년 전
|
조회 1,645
|
|
|
|
14년 전
|
조회 1,872
|
|
|
선택이란
|
14년 전
|
조회 1,710
|
|
|
|
14년 전
|
조회 1,560
|
|
|
|
14년 전
|
조회 1,664
|
|
|
|
14년 전
|
조회 1,642
|
|
|
|
14년 전
|
조회 1,595
|
|
|
|
14년 전
|
조회 2,447
|
|
|
|
14년 전
|
조회 1,781
|
|
|
선택이란
|
14년 전
|
조회 1,672
|
|
|
|
14년 전
|
조회 1,577
|
|
|
|
14년 전
|
조회 1,648
|
댓글 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