ui.Map.Layer.getOpacity
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แสดงผลความทึบแสงของเลเยอร์เป็นตัวเลขระหว่าง 0 ถึง 1
การใช้งาน | การคืนสินค้า |
---|
Layer.getOpacity() | ตัวเลข |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.map.abstractlayer | ui.Map.AbstractLayer | อินสแตนซ์ ui.Map.AbstractLayer |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eThe \u003ccode\u003egetOpacity()\u003c/code\u003e method retrieves the opacity level of a specific layer on a map.\u003c/p\u003e\n"],["\u003cp\u003eOpacity is represented as a numerical value within the range of 0 (fully transparent) to 1 (fully opaque).\u003c/p\u003e\n"],["\u003cp\u003eThis method applies to instances of the \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e class, which represents various layer types within the mapping system.\u003c/p\u003e\n"]]],["The `Layer.getOpacity()` method retrieves a layer's opacity. It returns a number between 0 and 1, representing the opacity level. This method is called on a `ui.Map.AbstractLayer` instance, indicated by the `this` argument. No arguments are passed into the function. The instance determines the layer for which opacity is being queried.\n"],null,["# ui.Map.Layer.getOpacity\n\n\u003cbr /\u003e\n\nReturns the layer's opacity represented as a number between 0 and 1.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------|---------|\n| Layer.getOpacity`()` | Number |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |"]]