ui.Map.CloudStorageLayer.getOpacity
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trả về độ mờ của lớp dưới dạng một số từ 0 đến 1.
Cách sử dụng | Giá trị trả về |
---|
CloudStorageLayer.getOpacity() | Số |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.map.abstractlayer | ui.Map.AbstractLayer | Đối tượng ui.Map.AbstractLayer. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egetOpacity()\u003c/code\u003e method returns the Cloud Storage layer's opacity as a number between 0 and 1.\u003c/p\u003e\n"],["\u003cp\u003eThis method can be used with the \u003ccode\u003eui.map.abstractlayer\u003c/code\u003e instance to retrieve its opacity level.\u003c/p\u003e\n"]]],["The `CloudStorageLayer.getOpacity()` method retrieves the opacity of a layer. It returns a numerical value between 0 and 1, representing the layer's opacity. The method operates on a `ui.Map.AbstractLayer` instance, which is the target layer whose opacity is being queried. No arguments are passed besides the target instance itself.\n"],null,["# ui.Map.CloudStorageLayer.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| CloudStorageLayer.getOpacity`()` | Number |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |"]]