ui.Map.FeatureViewLayer.setShown
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.
Đặt chế độ hiển thị của lớp.
Trả về lớp bản đồ này.
Cách sử dụng | Giá trị trả về |
---|
FeatureViewLayer.setShown(shown) | ui.Map.AbstractLayer |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.map.abstractlayer | ui.Map.AbstractLayer | Đối tượng ui.Map.AbstractLayer. |
shown | Boolean, không bắt buộc | Lớp có xuất hiện hay không. |
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\u003eFeatureViewLayer.setShown()\u003c/code\u003e method controls the visibility of the layer on the map.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts an optional boolean argument, \u003ccode\u003eshown\u003c/code\u003e, which determines whether the layer is visible or hidden.\u003c/p\u003e\n"],["\u003cp\u003eWhen called, it returns the \u003ccode\u003eui.Map.AbstractLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"]]],["The `setShown` method controls a map layer's visibility. It accepts a boolean `shown` argument, determining if the layer is displayed (true) or hidden (false). This method is applied to a `ui.Map.AbstractLayer` instance and returns the same `ui.Map.AbstractLayer` object. The `shown` parameter is optional and represents the desired visibility state of the layer.\n"],null,["# ui.Map.FeatureViewLayer.setShown\n\n\u003cbr /\u003e\n\nSets the visibility of the layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|----------------------------------------|----------------------|\n| FeatureViewLayer.setShown`(`*shown*`)` | ui.Map.AbstractLayer |\n\n| Argument | Type | Details |\n|------------------------------|----------------------|------------------------------------|\n| this: `ui.map.abstractlayer` | ui.Map.AbstractLayer | The ui.Map.AbstractLayer instance. |\n| `shown` | Boolean, optional | Whether the layer is shown. |"]]