お知らせ:
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 | 関数(省略可) | 非同期コールバック。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は 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. |"]]