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

[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 - exitFullscreen() 메서드 - 전체화면모드 닫기 (IE11 이상)
DOM_Element JS - firstChild 속성 ★ - 첫번째 자식노드
DOM_Element JS - firstElementChild 속성 - 첫번째 자식요소 (IE9 이상)
DOM_Element JS - focus() 메서드 ★ - 포커스 주기/설정. (= focus메서드 = 포커스메서드)
DOM_Element JS - getAttribute() 메서드 ★ - 요소의 속성명 (= 속성이름) 얻기
DOM_Element JS - getAttributeNode() 메서드 - 지정한 속성노드를 객체로 얻기
DOM_Element JS - getBoundingClientRect() 메서드 - 뷰포트 기준 요소크기와 요소위치 반환 (= g…
DOM_Element JS - getElementsByClassName() 메서드 - 클래스선택자 (= 클래스명선택자 = 클래스이…
DOM_Element JS - getElementsBy태그Name() 메서드 - 태그선택자 (= 요소선택자 = 태그명선택자 = 태…
DOM_Element JS - hasAttribute() 메서드 - 지정속성소유여부 (IE9 이상)
DOM_Element JS - hasAttributes() 메서드 - 속성소유여부 (IE9 이상)
DOM_Element JS - hasChildNodes() 메서드 - 자식노드유무 체크 (= hasChildNodes메서드 = 해…
DOM_Element JS - id 속성 = 아이디 설정/반환
DOM_Element JS - innerHTML 속성 ★ - 요소내용 설정/반환 (= innerHTML속성 = 이너에이치티엠엘속성…
DOM_Element JS - innerText 속성 ★★ - 요소의 텍스트(문자열) 내용과 모든 하위 항목 설정/반환. (= i…
DOM_Element JS - insertAdjacentElement() 메서드 - 지정요소를 지정위치에 삽입 (IE8 이상)
DOM_Element JS - insertAdjacentHTML() 메서드 ★ - HTML문자열을 지정위치에 삽입 (= inser…
DOM_Element JS - insertAdjacentText() 메서드 - 텍스트문자열을 지정위치에 삽입
DOM_Element JS - insertBefore() 메서드 - 기존자식노드 앞에 새 자식노드 삽입
DOM_Element JS - isContentEditable 속성 - 요소내용 편집가능여부 표시
28/67
목록
찾아주셔서 감사합니다. Since 2012