ui.Map.Layer.setVisParams
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 các thông số trực quan hoá của lớp.
Trả về lớp bản đồ này.
Cách sử dụng | Giá trị trả về |
---|
Layer.setVisParams(visParams) | ui.Map.Layer |
Đối số | Loại | Thông tin chi tiết |
---|
this: ui.map.layer | ui.Map.Layer | Đối tượng ui.Map.Layer. |
visParams | FeatureVisualizationParameters|ImageVisualizationParameters, không bắt buộc | Các thông số trực quan hoá. Xem tài liệu ee.data.getMapId(). |
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\u003eDefines how the layer is displayed on the map, controlling its visual appearance.\u003c/p\u003e\n"],["\u003cp\u003eAccepts visualization parameters that dictate the layer's styling and presentation, similar to those used in \u003ccode\u003eee.data.getMapId()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eModifies the existing layer directly and returns the updated \u003ccode\u003eui.Map.Layer\u003c/code\u003e object for chaining operations.\u003c/p\u003e\n"]]],["The `setVisParams` method configures a map layer's visualization. It accepts `visParams` which can be either `FeatureVisualizationParameters` or `ImageVisualizationParameters` as defined in `ee.data.getMapId()`. The method modifies the `ui.Map.Layer` instance, which is the target of this operation, and returns the same `ui.Map.Layer` instance. This function is used to update how the layer is displayed.\n"],null,["# ui.Map.Layer.setVisParams\n\n\u003cbr /\u003e\n\nSets the layer's visualization parameters.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|-------------------------------------|--------------|\n| Layer.setVisParams`(`*visParams*`)` | ui.Map.Layer |\n\n| Argument | Type | Details |\n|----------------------|------------------------------------------------------------------------|------------------------------------------------------------|\n| this: `ui.map.layer` | ui.Map.Layer | The ui.Map.Layer instance. |\n| `visParams` | FeatureVisualizationParameters\\|ImageVisualizationParameters, optional | The visualization parameters. See ee.data.getMapId() docs. |"]]