• 회원가입
  • 로그인
  • 구글아이디로 로그인

[API_Geolocation] JS - Geolocation - 지리위치객체종류

Geolocation 객체

 

1.
Geolocation 객체 이용하면, 사용자가 자기 위치를 웹 응용 프로그램에 제공 가능.

2.
개인정보 보호 위해 사용자에게 자기 위치 정보 보고할 지 여부 선택 권한 필요.

 

3.
이 기능은 보안 처리된 내용(예: HTTPS)에서만 사용 가능.

 

3.
Geolocation은 iPhone과 같이 GPS가있는 기기에서 가장 정확.

 

5.

Geolocation API는 navigator.geolocation 객체 통해 게시 .

 

 

Geolocation 객체 속성

 

coordinates

지구상의 장치의 위치와 고도를 반환.

 

position

주어진 시간에 관련 장치의 위치를 반환.

 

positionError

위치 정보 장치를 사용할 때 오류가 발생하는 이유를 반환.

 

positionOptions

Geolocation.getCurrentPosition () 및 Geolocation.watchPosition ()의 매개 변수로 전달할 옵션 속성이 들어있는 객체를 설명.

 

 

Geolocation 객체 메서드

 

clearWatch ()

Geolocation.watchPosition () 사용해 이전에 설치된 location/error 모니터링 핸들러의 등록 취소.

 

getCurrentPosition ()

디바이스의 현재의 위치 반환.

 

watchPosition ()

Geolocation.clearWatch () 메서드에 핸들러 전달해 등록자 등록 취소하는 데 사용 가능한 watch ID 값 반환.

 



분류 제목
DOM_Element JS - accessKey 속성 - 요소접근키 (= accessKey속성 = 액세스키속성) ※ 요소접근단축키
DOM_Element JS - addEventListener() 메서드 ★ - 요소에 이벤트 걸기. (addEventListene…
DOM_Element JS - appendChild() 메서드 - 요소에 마지막 자식요소생성 (= 마지막 자식요소추가 = appe…
DOM_Element JS - attributes 속성 - 요소의 속성들 (= 요소속성모음 = attributes속성 = 어트리뷰…
DOM_Element JS - blur() 메서드 - 포커스 제거. (= blur메서드 = 블러 메서드) ※ 링크 클릭 잔상 제…
DOM_Element JS - childElementCount 속성 - 자식요소개수 (IE9 이상)
DOM_Element JS - childNodes 속성 - 자식노드리스트
DOM_Element JS - children 속성 ★ - 자식요소노드 (IE9 이상)
DOM_Element JS - classList 속성 ★★ - 요소의 클래스리스트. (= classList속성 = 클리스리스트속성…
DOM_Element JS - className 속성 ★★★ = 요소의 클래스명 반환/설정. (= className속성 = 클래스…
DOM_Element JS - click() 메서드 ★★★★★ - 마우스클릭간주 (= 클릭이벤트 = click메서드 = 클릭메서드…
DOM_Element JS - clientHeight 속성 - 요소높이 (= 요소가시높이) (padding 포함 / border,…
DOM_Element JS - clientLeft 속성 - 요소왼쪽테두리너비 (= 요소좌측테두리너비)
DOM_Element JS - clientTop 속성 - 요소위쪽테두리너비 (= 요소상단테두리너비)
DOM_Element JS - clientWidth 속성 ★ - 요소너비 (= 요소가시너비 = clientWidth속성 = 클라이…
DOM_Element JS - cloneNode() 메서드 - 노드복사
DOM_Element JS - compareDocumentPosition() 메서드 - 노드간 위치비교 (IE9 이상)
DOM_Element JS - contains() 메서드 ★ - 자손노드인지 판별 (= contains메서드 = 컨테인즈 메서드)
DOM_Element JS - contentEditable 속성 - 편집가능상태 설정/반환
DOM_Element JS - dir 속성 - 쓰기방향 (= 입력방향) 설정/반환
27/67
목록
찾아주셔서 감사합니다. Since 2012