Earth Engine は、共有コンピューティング リソースを保護し、すべてのユーザーに信頼性の高いパフォーマンスを提供するために、
非商用割り当て階層 を導入しています。すべての非商用プロジェクトは、
2026 年 4 月 27 日 までに割り当て階層を選択する必要があります。選択しない場合は、デフォルトでコミュニティ階層が使用されます。階層の割り当ては、
2026 年 4 月 27 日 に(階層の選択日に関係なく)すべてのプロジェクトで有効になります。
詳細
フィードバックを送信
Map.addLayer
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された EE オブジェクトをレイヤとして地図に追加します。
新しい地図レイヤを返します。
用途 戻り値 Map.addLayer(eeObject, visParams , name , shown , opacity )ui.Map.Layer
引数 タイプ 詳細 eeObjectCollection|Feature|Image|RawMapId 地図に追加するオブジェクト。 visParamsFeatureVisualizationParameters|ImageVisualizationParameters(省略可) 可視化パラメータ。Image と ImageCollection の有効なパラメータについては、ee.data.getMapId をご覧ください。Feature と FeatureCollection でサポートされているキーは、CSS 3.0 のカラー文字列または「RRGGBB」形式の 16 進数文字列としての「color」のみです。eeObject がマップ ID の場合は無視されます。 name文字列、省略可 レイヤの名前。デフォルトは「レイヤ N」です。 shownブール値、省略可 レイヤをデフォルトでオンにするかどうかを示すフラグ。 opacity数値、省略可 0 ~ 1 の数値で表されるレイヤの不透明度。デフォルトは 1 です。
例
コードエディタ(JavaScript)
// A Sentinel-2 surface reflectance image.
var image = ee . Image ( 'COPERNICUS/S2_SR/20210109T185751_20210109T185931_T10SEG' );
Map . setCenter ( - 121.87 , 37.44 , 9 );
// Set multi-band RGB image visualization parameters. If the "bands" parameter
// is not defined, the first three bands are used.
var rgbVis = {
bands : [ 'B11' , 'B8' , 'B3' ],
min : 0 ,
max : 3000
};
Map . addLayer ( image , rgbVis , 'Multi-band RGB image' );
// Set band-specific "min" and "max" properties.
var rgbVisBandSpec = {
bands : [ 'B11' , 'B8' , 'B3' ],
min : [ 0 , 75 , 150 ],
max : [ 3500 , 3000 , 2500 ]
};
Map . addLayer ( image , rgbVisBandSpec , 'Band-specific min/max' );
// If you don't specify "min" and "max" properties, they will be determined
// from the data type range, often resulting in an ineffective color stretch.
Map . addLayer ( image . select ( 'B8' ), null , 'Default visParams' );
// If an image layer has already been styled, set "visParams" as null.
var imageRgb = image . visualize ( rgbVis );
Map . addLayer ( imageRgb , null , 'Pre-styled image' );
// Use the "palette" parameter with single-band image inputs to define the
// linear color gradient to stretch between the "min" and "max" values.
var singleBandVis = {
min : 0 ,
max : 3000 ,
palette : [ 'blue' , 'yellow' , 'green' ]
};
Map . addLayer ( image . select ( 'B8' ), singleBandVis , 'Single-band palette' );
// Images within ImageCollections are automatically mosaicked according to mask
// status and image order. The last image in the collection takes priority,
// invalid pixels are filled by valid pixels in preceding images.
var imageCol = ee . ImageCollection ( 'COPERNICUS/S2_SR' )
. filterDate ( '2021-03-01' , '2021-04-01' );
Map . addLayer ( imageCol , rgbVis , 'ImageCollection mosaic' );
// FeatureCollection, Feature, and Geometry objects can be styled using the
// "color" parameter.
var featureCol = ee . FeatureCollection ( 'WCMC/WDPA/current/polygons' );
Map . addLayer ( featureCol , { color : 'purple' }, 'FeatureCollection' );
フィードバックを送信
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
ご意見をお聞かせください
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[],["The `Map.addLayer` function adds an Earth Engine object to a map as a layer, returning the new `ui.Map.Layer`. It accepts an `eeObject` (Collection, Feature, Image, or RawMapId), optional `visParams` for visualization, `name` for the layer's label, `shown` (boolean) to set default visibility, and `opacity` (0-1). Visualization parameters vary by object type; `color` is the only supported parameter for Features, while Images support `bands`, `min`, `max`, and `palette`. ImageCollections are mosaicked, and the last images take precedence.\n"]]