공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ui.util.getCurrentPosition
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
브라우저의 위치정보 서비스에서 사용자의 현재 지리적 위치를 가져옵니다.
사용 | 반환 값 |
---|
ui.util.getCurrentPosition(success, error) | |
인수 | 유형 | 세부정보 |
---|
success | 함수 | ee.Geometry.Point 객체를 입력 매개변수로 사용하는 콜백 함수입니다. |
error | 함수(선택사항) | 오류 메시지를 입력 매개변수로 사용하는 선택적 콜백 함수입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003e\u003ccode\u003eui.util.getCurrentPosition\u003c/code\u003e retrieves the user's current location using the browser's geolocation service.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts two arguments: a mandatory \u003ccode\u003esuccess\u003c/code\u003e callback function for handling the location data (as an \u003ccode\u003eee.Geometry.Point\u003c/code\u003e) and an optional \u003ccode\u003eerror\u003c/code\u003e callback for handling potential errors.\u003c/p\u003e\n"]]],["This functionality retrieves the user's current location using the browser's geolocation. It utilizes `ui.util.getCurrentPosition(success, error)`. The `success` argument, a function, receives a `ee.Geometry.Point` object representing the location. An optional `error` argument, also a function, handles potential errors, receiving an error message as input. The function doesn't explicitly return any value but rather communicates the location or an error via callback functions.\n"],null,["# ui.util.getCurrentPosition\n\n\u003cbr /\u003e\n\nGets the user's current geographic position from the browser's geolocation service.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------|---------|\n| `ui.util.getCurrentPosition(success, `*error*`)` | |\n\n| Argument | Type | Details |\n|-----------|--------------------|-----------------------------------------------------------------------------------|\n| `success` | Function | A callback function that takes a ee.Geometry.Point object as its input parameter. |\n| `error` | Function, optional | An optional callback function that takes an error message as its input parameter. |"]]