공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
Map.onChangeZoom
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
지도 확대/축소 수준이 변경될 때 실행되는 콜백을 등록합니다.
콜백을 등록 취소하기 위해 unlisten()에 전달할 수 있는 ID를 반환합니다.
사용 | 반환 값 |
---|
Map.onChangeZoom(callback) | 문자열 |
인수 | 유형 | 세부정보 |
---|
callback | 함수 | 지도 확대/축소 변경 시 실행할 콜백입니다. 콜백에는 새 확대/축소 수준과 지도 위젯 자체가 전달됩니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 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\u003eMap.onChangeZoom()\u003c/code\u003e registers a callback function that is triggered when the map's zoom level is changed.\u003c/p\u003e\n"],["\u003cp\u003eThe provided callback function receives the updated zoom level and the map widget instance as arguments.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eMap.onChangeZoom()\u003c/code\u003e returns a unique ID that can be used with \u003ccode\u003eunlisten()\u003c/code\u003e to remove the registered callback.\u003c/p\u003e\n"]]],["A callback function is registered to trigger when the map's zoom level changes. This function, `onChangeZoom(callback)`, returns a unique ID string. This ID is used to remove the callback with `unlisten()`. The registered callback receives two arguments: the new zoom level and the map widget, when triggered by a zoom change event.\n"],null,["# Map.onChangeZoom\n\n\u003cbr /\u003e\n\nRegisters a callback that's fired when the map zoom level changes.\n\n\u003cbr /\u003e\n\nReturns an ID which can be passed to unlisten() to unregister the callback.\n\n| Usage | Returns |\n|------------------------------|---------|\n| `Map.onChangeZoom(callback)` | String |\n\n| Argument | Type | Details |\n|------------|----------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `callback` | Function | The callback to fire when the map zoom change. The callback is passed two parameters: the new zoom level and the map widget itself. |"]]