Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum 15 April 2025 harus memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
Parameter visualisasi. Untuk Gambar dan ImageCollection, lihat ee.data.getMapId untuk parameter yang valid. Untuk Fitur dan FeatureCollection, satu-satunya kunci yang didukung adalah "color", sebagai string warna CSS 3.0 atau string hex dalam format "RRGGBB". Diabaikan jika eeObject adalah ID peta.
name
String, opsional
Nama lapisan. Defaultnya adalah "Layer N".
shown
Boolean, opsional
Tanda yang menunjukkan apakah lapisan harus aktif secara default.
opacity
Nomor, opsional
Opasitas lapisan ditampilkan sebagai angka antara 0 dan 1. Default-nya adalah 1.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-26 UTC."],[[["`Map.addLayer()` overlays Earth Engine objects like images and features onto the map as a new layer."],["Visualization parameters can be customized using the `visParams` argument to control how the layer is displayed."],["This function accepts Earth Engine objects (like Image, FeatureCollection, Geometry), visualization parameters, layer name, visibility, and opacity as arguments."],["The function returns the added map layer as a `ui.Map.Layer` object, which can be further manipulated."],["Pre-styled images or those with inherent visualization can be added by setting `visParams` to null."]]],["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"]]