모바일에서 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>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6030 | 12년 전 | 2831 | ||
| 6029 | 12년 전 | 2852 | ||
| 6028 | 12년 전 | 1476 | ||
| 6027 | 12년 전 | 897 | ||
| 6026 |
kiplayer
|
12년 전 | 809 | |
| 6025 | 12년 전 | 609 | ||
| 6024 | 12년 전 | 2824 | ||
| 6023 | 12년 전 | 2958 | ||
| 6022 |
|
12년 전 | 2114 | |
| 6021 |
Holyreign
|
12년 전 | 1344 | |
| 6020 | 12년 전 | 792 | ||
| 6019 | 12년 전 | 2864 | ||
| 6018 | 12년 전 | 3200 | ||
| 6017 | 12년 전 | 1245 | ||
| 6016 |
kiplayer
|
12년 전 | 10587 | |
| 6015 |
itlang
|
12년 전 | 1426 | |
| 6014 | 12년 전 | 430 | ||
| 6013 |
senseme
|
12년 전 | 1367 | |
| 6012 | 12년 전 | 3115 | ||
| 6011 | 12년 전 | 7132 | ||
| 6010 | 12년 전 | 8968 | ||
| 6009 | 12년 전 | 2876 | ||
| 6008 | 12년 전 | 2997 | ||
| 6007 | 12년 전 | 6678 | ||
| 6006 | 12년 전 | 10519 | ||
| 6005 | 12년 전 | 4056 | ||
| 6004 |
|
12년 전 | 589 | |
| 6003 | 12년 전 | 892 | ||
| 6002 | 12년 전 | 2355 | ||
| 6001 | 12년 전 | 691 | ||
| 6000 |
kiplayer
|
12년 전 | 3743 | |
| 5999 | 12년 전 | 443 | ||
| 5998 |
|
12년 전 | 2947 | |
| 5997 |
|
12년 전 | 3445 | |
| 5996 | 12년 전 | 2102 | ||
| 5995 |
kiplayer
|
12년 전 | 2178 | |
| 5994 |
|
12년 전 | 3275 | |
| 5993 |
windowhan
|
12년 전 | 682 | |
| 5992 | 12년 전 | 2905 | ||
| 5991 | 12년 전 | 5240 | ||
| 5990 | 12년 전 | 1643 | ||
| 5989 |
AMDbest
|
12년 전 | 1355 | |
| 5988 | 12년 전 | 1221 | ||
| 5987 |
kiplayer
|
12년 전 | 1138 | |
| 5986 |
한번잘해보자
|
12년 전 | 930 | |
| 5985 |
kiplayer
|
12년 전 | 3143 | |
| 5984 |
dsv421
|
12년 전 | 810 | |
| 5983 |
dsv421
|
12년 전 | 1511 | |
| 5982 |
dsv421
|
12년 전 | 5843 | |
| 5981 | 12년 전 | 3219 | ||
| 5980 |
MFBob
|
12년 전 | 2629 | |
| 5979 | 12년 전 | 3102 | ||
| 5978 |
AMDbest
|
12년 전 | 1461 | |
| 5977 | 12년 전 | 795 | ||
| 5976 | 12년 전 | 1213 | ||
| 5975 | 12년 전 | 1278 | ||
| 5974 | 12년 전 | 614 | ||
| 5973 |
kiplayer
|
12년 전 | 3557 | |
| 5972 |
kiplayer
|
12년 전 | 3983 | |
| 5971 |
kiplayer
|
12년 전 | 2306 | |
| 5970 |
kiplayer
|
12년 전 | 8295 | |
| 5969 |
kiplayer
|
12년 전 | 951 | |
| 5968 | 12년 전 | 8746 | ||
| 5967 |
|
12년 전 | 16906 | |
| 5966 | 12년 전 | 1233 | ||
| 5965 | 12년 전 | 712 | ||
| 5964 | 12년 전 | 6251 | ||
| 5963 | 12년 전 | 707 | ||
| 5962 | 12년 전 | 887 | ||
| 5961 | 12년 전 | 640 | ||
| 5960 | 12년 전 | 787 | ||
| 5959 |
|
12년 전 | 1124 | |
| 5958 | 12년 전 | 985 | ||
| 5957 |
웹디자인되고파
|
12년 전 | 1093 | |
| 5956 | 12년 전 | 3661 | ||
| 5955 | 12년 전 | 2143 | ||
| 5954 | 12년 전 | 4399 | ||
| 5953 | 12년 전 | 3092 | ||
| 5952 | 12년 전 | 4270 | ||
| 5951 | 12년 전 | 2083 | ||
| 5950 | 12년 전 | 1284 | ||
| 5949 | 12년 전 | 937 | ||
| 5948 | 12년 전 | 2086 | ||
| 5947 | 12년 전 | 5005 | ||
| 5946 |
dsv421
|
12년 전 | 1276 | |
| 5945 |
dsv421
|
12년 전 | 4124 | |
| 5944 |
dsv421
|
12년 전 | 5645 | |
| 5943 | 12년 전 | 1292 | ||
| 5942 | 12년 전 | 2542 | ||
| 5941 |
프로프리랜서
|
12년 전 | 1647 | |
| 5940 |
atria
|
12년 전 | 618 | |
| 5939 | 12년 전 | 2345 | ||
| 5938 | 12년 전 | 2089 | ||
| 5937 |
프로프리랜서
|
12년 전 | 778 | |
| 5936 |
프로프리랜서
|
12년 전 | 716 | |
| 5935 |
프로프리랜서
|
12년 전 | 3218 | |
| 5934 |
프로프리랜서
|
12년 전 | 1646 | |
| 5933 |
AMDbest
|
12년 전 | 662 | |
| 5932 |
AMDbest
|
12년 전 | 506 | |
| 5931 | 12년 전 | 8144 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기