공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
Map.setCenter
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
지정된 확대/축소 수준으로 지정된 좌표에 지도 뷰를 중앙에 배치합니다.
지도를 반환합니다.
사용 | 반환 값 |
---|
Map.setCenter(lon, lat, zoom) | ui.Map |
인수 | 유형 | 세부정보 |
---|
lon | 숫자 | 중심의 경도(단위: 도)입니다. |
lat | 숫자 | 중심의 위도(도)입니다. |
zoom | 숫자, 선택사항 | 확대/축소 수준(0~24)입니다. |
예
코드 편집기 (JavaScript)
// Set the position and optional zoom level of the map. Latitude must be
// within [-85, 85].
Map.setCenter(-123.6, 47.7, 9);
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eCenters the map view to specified coordinates and an optional zoom level.\u003c/p\u003e\n"],["\u003cp\u003eTakes longitude, latitude, and an optional zoom level (0-24) as input.\u003c/p\u003e\n"],["\u003cp\u003eReturns the \u003ccode\u003eui.Map\u003c/code\u003e object for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eLatitude values must be within the range of -85 to 85.\u003c/p\u003e\n"]]],[],null,["# Map.setCenter\n\n\u003cbr /\u003e\n\nCenters the map view at a given coordinates with the given zoom level.\n\n\u003cbr /\u003e\n\nReturns the map.\n\n| Usage | Returns |\n|-------------------------------------|---------|\n| `Map.setCenter(lon, lat, `*zoom*`)` | ui.Map |\n\n| Argument | Type | Details |\n|----------|------------------|------------------------------------------|\n| `lon` | Number | The longitude of the center, in degrees. |\n| `lat` | Number | The latitude of the center, in degrees. |\n| `zoom` | Number, optional | The zoom level, from 0 to 24. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\n// Set the position and optional zoom level of the map. Latitude must be\n// within [-85, 85].\nMap.setCenter(-123.6, 47.7, 9);\n```"]]