공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.FeatureCollection.getMapId
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
지도 오버레이를 생성하는 데 적합한 지도 ID와 선택적 토큰을 반환하는 명령형 함수입니다.
이 특성이 포함된 FeatureCollection을 래핑하는 Collection.draw 이미지가 포함된 추가 'image' 필드를 비롯하여 ee.data.getTileUrl 또는 ui.Map.addLayer에 전달될 수 있는 객체를 반환합니다. 콜백이 지정된 경우 정의되지 않습니다.
사용 | 반환 값 |
---|
FeatureCollection.getMapId(visParams, callback) | MapId|Object |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: featurecollection | FeatureCollection | FeatureCollection 인스턴스입니다. |
visParams | 객체, 선택사항 | 시각화 매개변수입니다. 현재 RGB 색상 문자열이 포함된 'color' 매개변수 하나만 허용됩니다. visParams를 지정하지 않으면 검은색 ('000000')이 사용됩니다. |
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\u003eFeatureCollection.getMapId()\u003c/code\u003e generates a map ID and optional token for creating map overlays using FeatureCollections.\u003c/p\u003e\n"],["\u003cp\u003eIt returns an object usable with \u003ccode\u003eee.data.getTileUrl\u003c/code\u003e or \u003ccode\u003eui.Map.addLayer\u003c/code\u003e for adding the FeatureCollection to a map.\u003c/p\u003e\n"],["\u003cp\u003eVisualization parameters, like color, can be customized; if unspecified, the default color is black.\u003c/p\u003e\n"],["\u003cp\u003eAn optional callback function can be provided for asynchronous operations.\u003c/p\u003e\n"]]],[],null,["# ee.FeatureCollection.getMapId\n\n\u003cbr /\u003e\n\nAn imperative function that returns a map ID and optional token, suitable for generating a Map overlay.\n\n\u003cbr /\u003e\n\nReturns an object which may be passed to ee.data.getTileUrl or ui.Map.addLayer, including an additional 'image' field, containing a Collection.draw image wrapping a FeatureCollection containing this feature. Undefined if a callback was specified.\n\n| Usage | Returns |\n|------------------------------------------------------------|---------------|\n| FeatureCollection.getMapId`(`*visParams* `, `*callback*`)` | MapId\\|Object |\n\n| Argument | Type | Details |\n|---------------------------|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `featurecollection` | FeatureCollection | The FeatureCollection instance. |\n| `visParams` | Object, optional | The visualization parameters. Currently only one parameter, 'color', containing an RGB color string is allowed. If visParams is not specified, black (\"000000\") is used. |\n| `callback` | Function, optional | An async callback. |"]]