ui.Map.FeatureViewLayer.setOpacity
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่าความทึบแสงของเลเยอร์
แสดงผลเลเยอร์แผนที่นี้
การใช้งาน | การคืนสินค้า |
---|
FeatureViewLayer.setOpacity(opacity) | ui.Map.AbstractLayer |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.map.abstractlayer | ui.Map.AbstractLayer | อินสแตนซ์ ui.Map.AbstractLayer |
opacity | หมายเลข (ไม่บังคับ) | ความทึบแสงของเลเยอร์แสดงเป็นตัวเลขระหว่าง 0 ถึง 1 |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eSets the opacity of the FeatureViewLayer, with a value between 0 and 1 representing transparency.\u003c/p\u003e\n"],["\u003cp\u003eReturns the ui.Map.AbstractLayer instance after setting the opacity.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esetOpacity()\u003c/code\u003e method is accessed through a FeatureViewLayer object.\u003c/p\u003e\n"]]],[],null,["# ui.Map.FeatureViewLayer.setOpacity\n\n\u003cbr /\u003e\n\nSets the opacity of the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|--------------------------------------------|----------------------|\n| FeatureViewLayer.setOpacity`(`*opacity*`)` | ui.Map.AbstractLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|--------------------------------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |\n| `opacity` | Number, optional | The layer's opacity represented as a number between 0 and 1. |"]]