|
|
|
14년 전
|
조회 1,267
|
|
|
|
14년 전
|
조회 1,366
|
|
|
|
14년 전
|
조회 1,236
|
|
|
|
14년 전
|
조회 5,351
|
|
|
|
14년 전
|
조회 1,232
|
|
|
|
14년 전
|
조회 5,626
|
|
|
|
14년 전
|
조회 1,941
|
|
|
|
14년 전
|
조회 1,754
|
|
|
|
14년 전
|
조회 1,196
|
|
|
|
14년 전
|
조회 1,394
|
|
|
선택이란
|
14년 전
|
조회 1,895
|
|
|
|
14년 전
|
조회 1,391
|
|
|
|
14년 전
|
조회 2,047
|
|
|
|
14년 전
|
조회 1,597
|
|
|
|
14년 전
|
조회 1,353
|
|
|
|
14년 전
|
조회 1,469
|
|
|
|
14년 전
|
조회 3,531
|
|
|
|
14년 전
|
조회 1,299
|
|
|
|
14년 전
|
조회 1,853
|
|
|
|
14년 전
|
조회 1,496
|
|
|
|
14년 전
|
조회 1,452
|
|
|
|
14년 전
|
조회 1,330
|
|
|
|
14년 전
|
조회 3,969
|
|
|
|
14년 전
|
조회 1,889
|
|
|
|
14년 전
|
조회 1,355
|
|
|
|
14년 전
|
조회 1,418
|
|
|
|
14년 전
|
조회 1,398
|
|
|
|
14년 전
|
조회 1,476
|
|
|
|
14년 전
|
조회 1,260
|
|
|
|
14년 전
|
조회 1,357
|
|
|
|
14년 전
|
조회 1,969
|
|
|
선택이란
|
14년 전
|
조회 3,850
|
|
|
|
14년 전
|
조회 2,282
|
|
|
|
14년 전
|
조회 1,335
|
|
|
|
14년 전
|
조회 1,321
|
|
|
|
14년 전
|
조회 1,435
|
|
|
|
14년 전
|
조회 1,321
|
|
|
|
14년 전
|
조회 1,418
|
|
|
|
14년 전
|
조회 1,530
|
|
|
|
14년 전
|
조회 1,234
|
|
|
|
14년 전
|
조회 3,725
|
|
|
|
14년 전
|
조회 3,617
|
|
|
|
14년 전
|
조회 1,444
|
|
|
|
14년 전
|
조회 1,941
|
|
|
|
14년 전
|
조회 1,554
|
|
|
|
14년 전
|
조회 1,407
|
|
|
|
14년 전
|
조회 3,902
|
|
|
|
14년 전
|
조회 2,898
|
|
|
|
14년 전
|
조회 2,494
|
|
|
|
14년 전
|
조회 2,407
|
|
|
|
14년 전
|
조회 1,195
|
|
|
|
14년 전
|
조회 1,964
|
|
|
|
14년 전
|
조회 1,189
|
|
|
|
14년 전
|
조회 1,201
|
|
|
|
14년 전
|
조회 1,254
|
|
|
|
14년 전
|
조회 1,682
|
|
|
|
14년 전
|
조회 1,698
|
|
|
|
14년 전
|
조회 2,339
|
|
|
|
14년 전
|
조회 1,504
|
|
|
|
14년 전
|
조회 1,721
|
|
|
|
14년 전
|
조회 1,885
|
|
|
|
14년 전
|
조회 1,874
|
|
|
|
14년 전
|
조회 1,264
|
|
|
|
14년 전
|
조회 2,439
|
|
|
|
14년 전
|
조회 1,612
|
|
|
|
14년 전
|
조회 1,913
|
|
|
|
14년 전
|
조회 1,669
|
|
|
|
14년 전
|
조회 2,016
|
|
|
|
14년 전
|
조회 2,114
|
|
|
|
14년 전
|
조회 1,532
|
|
|
|
14년 전
|
조회 1,782
|
|
|
|
14년 전
|
조회 2,029
|
|
|
|
14년 전
|
조회 2,146
|
|
|
|
14년 전
|
조회 1,483
|
|
|
|
14년 전
|
조회 1,665
|
|
|
|
14년 전
|
조회 2,326
|
|
|
|
14년 전
|
조회 3,455
|
|
|
|
14년 전
|
조회 2,682
|
|
|
|
14년 전
|
조회 2,756
|
|
|
|
14년 전
|
조회 2,193
|
|
|
|
14년 전
|
조회 1,977
|
|
|
|
14년 전
|
조회 1,882
|
|
|
|
14년 전
|
조회 1,645
|
|
|
|
14년 전
|
조회 1,122
|
|
|
|
14년 전
|
조회 2,068
|
|
|
|
14년 전
|
조회 5,146
|
|
|
|
14년 전
|
조회 2,055
|
|
|
|
14년 전
|
조회 1,824
|
|
|
|
14년 전
|
조회 1,315
|
|
|
|
14년 전
|
조회 1,552
|
|
|
선택이란
|
14년 전
|
조회 1,347
|
|
|
|
14년 전
|
조회 1,233
|
|
|
|
14년 전
|
조회 1,309
|
|
|
|
14년 전
|
조회 1,318
|
|
|
|
14년 전
|
조회 1,279
|
|
|
|
14년 전
|
조회 2,120
|
|
|
|
14년 전
|
조회 1,452
|
|
|
선택이란
|
14년 전
|
조회 1,303
|
|
|
|
14년 전
|
조회 1,238
|
|
|
|
14년 전
|
조회 1,290
|
댓글 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