모바일에서 GPS가져오는 파일입니다.
유용하게 사용하세요 안되시면 쪽지주세요..
구글플레이안산놀이터에 적용된 파일입니다.
<!DOCTYPE html>
<html>
<head>
<title>jQuery Mobile</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type='text/javascript' src='/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/js/jquery.common.js'></script>
<script type='text/javascript' src='/js/swipe.js'></script>
<meta charset="utf-8" />
<script>
var geocoder = new google.maps.Geocoder();
var addr = "";
<head>
<title>jQuery Mobile</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type='text/javascript' src='/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/js/jquery.common.js'></script>
<script type='text/javascript' src='/js/swipe.js'></script>
<meta charset="utf-8" />
<script>
var geocoder = new google.maps.Geocoder();
var addr = "";
if( navigator.geolocation )
{
//괄호 속 인자 ( 성공일 때 함수명, 실패일 때 함수명)
navigator.geolocation.getCurrentPosition( showPosition, handleError );
}
{
//괄호 속 인자 ( 성공일 때 함수명, 실패일 때 함수명)
navigator.geolocation.getCurrentPosition( showPosition, handleError );
}
else
{
alert('navigator.geolocation 브라우저 미지원');
}
{
alert('navigator.geolocation 브라우저 미지원');
}
function showPosition( position )
{
//alert( '위도 : '+position.coords.latitude + '\n경도 : ' + position.coords.longitude );
googl(position.coords.latitude,position.coords.longitude);
}
function handleError( evt )
{
alert( evt.message );
}
{
//alert( '위도 : '+position.coords.latitude + '\n경도 : ' + position.coords.longitude );
googl(position.coords.latitude,position.coords.longitude);
}
function handleError( evt )
{
alert( evt.message );
}
function googl(num1, num2){
var latlng = new google.maps.LatLng(num1, num2);
geocoder.geocode({'latLng': latlng}, function(results, status){
if( status == google.maps.GeocoderStatus.OK ) {
//alert(results[0].formatted_address);
// document.write(results[1].formatted_address);
//$("#add1").value('111');//results[1].formatted_address);
document.body.innerHTML = results[1].formatted_address;
var latlng = new google.maps.LatLng(num1, num2);
geocoder.geocode({'latLng': latlng}, function(results, status){
if( status == google.maps.GeocoderStatus.OK ) {
//alert(results[0].formatted_address);
// document.write(results[1].formatted_address);
//$("#add1").value('111');//results[1].formatted_address);
document.body.innerHTML = results[1].formatted_address;
}
else {
//document.write("Geocoder failed due to: " + status)
document.body.innerHTML += "Geocoder failed due to: " + status + "<br />";
//$("#address").html("Geocoder failed due to: " + status);;
}
});
}
else {
//document.write("Geocoder failed due to: " + status)
document.body.innerHTML += "Geocoder failed due to: " + status + "<br />";
//$("#address").html("Geocoder failed due to: " + status);;
}
});
}
</script>
</head>
<body>
<!-- <div id="add1" style="font-size:13px;"></div> -->
</body>
</html>
<!-- <div id="add1" style="font-size:13px;"></div> -->
</body>
</html>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 365 | ||
| 7929 | 9년 전 | 261 | ||
| 7928 | 9년 전 | 369 | ||
| 7927 | 9년 전 | 296 | ||
| 7926 | 9년 전 | 643 | ||
| 7925 | 9년 전 | 311 | ||
| 7924 | 9년 전 | 286 | ||
| 7923 | 9년 전 | 321 | ||
| 7922 | 9년 전 | 340 | ||
| 7921 | 9년 전 | 373 | ||
| 7920 | 9년 전 | 294 | ||
| 7919 | 9년 전 | 311 | ||
| 7918 | 9년 전 | 474 | ||
| 7917 | 9년 전 | 313 | ||
| 7916 | 9년 전 | 380 | ||
| 7915 | 9년 전 | 365 | ||
| 7914 | 9년 전 | 379 | ||
| 7913 | 9년 전 | 504 | ||
| 7912 | 9년 전 | 376 | ||
| 7911 | 9년 전 | 332 | ||
| 7910 | 9년 전 | 359 | ||
| 7909 | 9년 전 | 470 | ||
| 7908 | 9년 전 | 367 | ||
| 7907 | 9년 전 | 319 | ||
| 7906 | 9년 전 | 335 | ||
| 7905 | 9년 전 | 327 | ||
| 7904 | 9년 전 | 295 | ||
| 7903 | 9년 전 | 293 | ||
| 7902 | 9년 전 | 513 | ||
| 7901 |
|
9년 전 | 716 | |
| 7900 | 9년 전 | 536 | ||
| 7899 | 9년 전 | 345 | ||
| 7898 | 9년 전 | 339 | ||
| 7897 | 9년 전 | 296 | ||
| 7896 | 9년 전 | 315 | ||
| 7895 | 9년 전 | 423 | ||
| 7894 | 9년 전 | 346 | ||
| 7893 | 9년 전 | 277 | ||
| 7892 | 9년 전 | 323 | ||
| 7891 | 9년 전 | 708 | ||
| 7890 | 9년 전 | 1174 | ||
| 7889 | 9년 전 | 729 | ||
| 7888 |
limsy1987
|
9년 전 | 526 | |
| 7887 | 9년 전 | 499 | ||
| 7886 | 9년 전 | 387 | ||
| 7885 | 9년 전 | 358 | ||
| 7884 | 9년 전 | 369 | ||
| 7883 | 9년 전 | 348 | ||
| 7882 | 9년 전 | 360 | ||
| 7881 | 9년 전 | 389 | ||
| 7880 | 9년 전 | 515 | ||
| 7879 | 9년 전 | 411 | ||
| 7878 | 9년 전 | 1155 | ||
| 7877 | 9년 전 | 706 | ||
| 7876 | 9년 전 | 434 | ||
| 7875 | 9년 전 | 507 | ||
| 7874 |
|
9년 전 | 779 | |
| 7873 | 9년 전 | 482 | ||
| 7872 | 9년 전 | 614 | ||
| 7871 | 9년 전 | 445 | ||
| 7870 | 9년 전 | 567 | ||
| 7869 | 9년 전 | 384 | ||
| 7868 | 9년 전 | 380 | ||
| 7867 | 9년 전 | 380 | ||
| 7866 | 9년 전 | 439 | ||
| 7865 | 9년 전 | 395 | ||
| 7864 | 9년 전 | 460 | ||
| 7863 | 9년 전 | 451 | ||
| 7862 | 9년 전 | 428 | ||
| 7861 | 9년 전 | 588 | ||
| 7860 | 9년 전 | 593 | ||
| 7859 | 9년 전 | 362 | ||
| 7858 | 9년 전 | 671 | ||
| 7857 | 9년 전 | 1021 | ||
| 7856 | 9년 전 | 483 | ||
| 7855 | 9년 전 | 698 | ||
| 7854 | 9년 전 | 698 | ||
| 7853 | 9년 전 | 532 | ||
| 7852 | 9년 전 | 472 | ||
| 7851 | 9년 전 | 445 | ||
| 7850 | 9년 전 | 541 | ||
| 7849 | 9년 전 | 313 | ||
| 7848 | 9년 전 | 365 | ||
| 7847 | 9년 전 | 587 | ||
| 7846 | 9년 전 | 405 | ||
| 7845 | 9년 전 | 367 | ||
| 7844 | 9년 전 | 365 | ||
| 7843 | 9년 전 | 371 | ||
| 7842 | 9년 전 | 367 | ||
| 7841 | 9년 전 | 354 | ||
| 7840 | 9년 전 | 359 | ||
| 7839 | 9년 전 | 395 | ||
| 7838 | 9년 전 | 478 | ||
| 7837 | 9년 전 | 320 | ||
| 7836 | 9년 전 | 356 | ||
| 7835 | 9년 전 | 439 | ||
| 7834 |
|
9년 전 | 1168 | |
| 7833 | 9년 전 | 374 | ||
| 7832 | 9년 전 | 368 | ||
| 7831 | 9년 전 | 503 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기