ui.Map.FeatureViewLayer
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
เลเยอร์ที่สร้างจากชิ้นงาน FeatureView เพื่อแสดงใน ui.Map
การใช้งาน | การคืนสินค้า |
---|
ui.Map.FeatureViewLayer(assetId, visParams, name, shown, opacity) | ui.Map.FeatureViewLayer |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
assetId | สตริง | รหัสชิ้นงานสำหรับ FeatureView |
visParams | ออบเจ็กต์ (ไม่บังคับ) | พารามิเตอร์การแสดงภาพสำหรับเลเยอร์นี้ |
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\u003eA FeatureViewLayer is used to display data from a FeatureView asset on a ui.Map.\u003c/p\u003e\n"],["\u003cp\u003eIt is created using the \u003ccode\u003eui.Map.FeatureViewLayer()\u003c/code\u003e constructor, which takes the FeatureView asset ID and optional visualization parameters, name, visibility, and opacity.\u003c/p\u003e\n"],["\u003cp\u003eThe layer can be customized with visualization parameters and its appearance, such as name and opacity, can be controlled.\u003c/p\u003e\n"],["\u003cp\u003eBy default, the layer is visible and has an opacity of 1, but these properties can be adjusted as needed.\u003c/p\u003e\n"]]],["The `ui.Map.FeatureViewLayer` function creates a layer from a FeatureView asset for display on a `ui.Map`. It requires the `assetId` of the FeatureView and accepts optional parameters: `visParams` for visualization settings, `name` for layer identification, `shown` to control initial visibility, and `opacity` to adjust the layer's transparency from 0 to 1. The function returns a `ui.Map.FeatureViewLayer` object.\n"],null,["# ui.Map.FeatureViewLayer\n\n\u003cbr /\u003e\n\nA layer generated from a FeatureView asset for display on a ui.Map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------|-------------------------|\n| `ui.Map.FeatureViewLayer(assetId, `*visParams* `, `*name* `, `*shown* `, `*opacity*`)` | ui.Map.FeatureViewLayer |\n\n| Argument | Type | Details |\n|-------------|-------------------|----------------------------------------------------------------------------------------------------------------------|\n| `assetId` | String | The asset ID for the FeatureView. |\n| `visParams` | Object, optional | The visualization parameters for this layer. |\n| `name` | String, optional | The name of the layer, which appears in the list of layers and when inspecting this layer. Defaults to the asset ID. |\n| `shown` | Boolean, optional | Whether the layer is initially shown on the map. Defaults to true. |\n| `opacity` | Number, optional | The layer's opacity represented as a number between 0 and 1. Defaults to 1. |"]]