ui.Map.Layer
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เลเยอร์ที่สร้างจากออบเจ็กต์ Earth Engine เพื่อแสดงใน ui.Map
การใช้งาน | การคืนสินค้า |
---|
ui.Map.Layer(eeObject, visParams, name, shown, opacity) | ui.Map.Layer |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
eeObject | คอลเล็กชัน|ฟีเจอร์|รูปภาพ ไม่บังคับ | ออบเจ็กต์ที่จะเพิ่มลงในแผนที่ ค่าเริ่มต้นจะเป็น ee.Image ที่ว่างเปล่า |
visParams | FeatureVisualizationParameters|ImageVisualizationParameters, ไม่บังคับ | พารามิเตอร์การแสดงภาพ ดูเอกสารประกอบ ee.data.getMapId() |
name | สตริง ไม่บังคับ | ชื่อเลเยอร์ |
shown | บูลีน ไม่บังคับ | กำหนดว่าจะให้เลเยอร์แสดงในตอนแรกหรือไม่ ค่าเริ่มต้นคือ True |
opacity | หมายเลข (ไม่บังคับ) | ความทึบแสงของเลเยอร์แสดงเป็นตัวเลขระหว่าง 0 ถึง 1 ค่าเริ่มต้นคือ 1 |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eCreates a map layer from an Earth Engine object (like Image, Feature, or Collection) for display on a ui.Map.\u003c/p\u003e\n"],["\u003cp\u003eCustomizable with visualization parameters, name, visibility, and opacity.\u003c/p\u003e\n"],["\u003cp\u003eDefaults to an empty ee.Image if no Earth Engine object is provided.\u003c/p\u003e\n"]]],["`ui.Map.Layer` creates a display layer from an Earth Engine object. It takes an `eeObject` (Collection, Feature, or Image), optional visualization parameters (`visParams`), a layer `name`, a `shown` boolean (defaulting to true), and an `opacity` number between 0 and 1 (defaulting to 1). The `eeObject` defaults to an empty image. It returns a `ui.Map.Layer` object which is added to the map.\n"],null,["# ui.Map.Layer\n\n\u003cbr /\u003e\n\nA layer generated from an Earth Engine object for display on a ui.Map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------|--------------|\n| `ui.Map.Layer(`*eeObject* `, `*visParams* `, `*name* `, `*shown* `, `*opacity*`)` | ui.Map.Layer |\n\n| Argument | Type | Details |\n|-------------|------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| `eeObject` | Collection\\|Feature\\|Image, optional | The object to add to the map. Defaults to an empty ee.Image. |\n| `visParams` | FeatureVisualizationParameters\\|ImageVisualizationParameters, optional | The visualization parameters. See ee.data.getMapId() docs. |\n| `name` | String, optional | The name of the layer. |\n| `shown` | Boolean, optional | Whether the layer is initially shown. Defaults to true. |\n| `opacity` | Number, optional | The layer's opacity represented as a number between 0 and 1. Defaults to 1. |"]]