お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.Feature.getMap
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
マップ オーバーレイの生成に適したマップ ID と省略可能なトークンを返す命令型関数。
この特徴を含む FeatureCollection をラップする Collection.draw 画像を含む追加の「image」フィールドなど、ee.data.getTileUrl または ui.Map.addLayer に渡すことができるオブジェクトを返します。コールバックが指定されている場合は未定義。
用途 | 戻り値 |
---|
Feature.getMap(visParams, callback) | MapId|Object |
引数 | タイプ | 詳細 |
---|
これ: feature | 機能 | Feature インスタンス。 |
visParams | オブジェクト、省略可 | 可視化パラメータ。現在、RGB カラー文字列を含む「color」という 1 つのパラメータのみが使用されています。vis_params が null の場合は、黒(「000000」)が使用されます。 |
callback | 関数(省略可) | 非同期コールバック。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003e\u003ccode\u003eFeature.getMap\u003c/code\u003e generates a map ID and an optional token for creating map overlays.\u003c/p\u003e\n"],["\u003cp\u003eIt returns data compatible with \u003ccode\u003eee.data.getTileUrl\u003c/code\u003e and \u003ccode\u003eui.Map.addLayer\u003c/code\u003e for visualization.\u003c/p\u003e\n"],["\u003cp\u003eThe function accepts visualization parameters, including color, to customize the map overlay's appearance.\u003c/p\u003e\n"],["\u003cp\u003eUsers have the option to provide a callback function for asynchronous operations.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.getMap\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| Feature.getMap`(`*visParams* `, `*callback*`)` | MapId\\|Object |\n\n| Argument | Type | Details |\n|-----------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `feature` | Feature | The Feature instance. |\n| `visParams` | Object, optional | The visualization parameters. Currently only one parameter, 'color', containing an RGB color string is user. If vis_params is null, black (\"000000\") is used. |\n| `callback` | Function, optional | An async callback. |"]]