Thông báo: Tất cả dự án phi thương mại đã đăng ký sử dụng Earth Engine trước ngày 15 tháng 4 năm 2025 phải xác minh điều kiện sử dụng phi thương mại để duy trì quyền truy cập vào Earth Engine.
FeatureVisualizationParameters|ImageVisualizationParameters, không bắt buộc
Các thông số trực quan hoá. Đối với Hình ảnh và ImageCollection, hãy xem ee.data.getMapId để biết các tham số hợp lệ. Đối với Features và FeatureCollections, khoá duy nhất được hỗ trợ là "color", dưới dạng chuỗi màu CSS 3.0 hoặc chuỗi thập lục phân ở định dạng "RRGGBB". Bị bỏ qua khi eeObject là mã bản đồ.
name
Chuỗi, không bắt buộc
Tên của lớp. Giá trị mặc định là "Lớp N".
shown
Boolean, không bắt buộc
Một cờ cho biết liệu lớp có được bật theo mặc định hay không.
opacity
Số, không bắt buộc
Độ mờ của lớp được biểu thị dưới dạng một số từ 0 đến 1. Giá trị mặc định là 1.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["`Map.addLayer()` overlays Earth Engine objects like images and features onto the map as a new layer."],["Visualization parameters can be customized using the `visParams` argument to control how the layer is displayed."],["This function accepts Earth Engine objects (like Image, FeatureCollection, Geometry), visualization parameters, layer name, visibility, and opacity as arguments."],["The function returns the added map layer as a `ui.Map.Layer` object, which can be further manipulated."],["Pre-styled images or those with inherent visualization can be added by setting `visParams` to null."]]],["The `Map.addLayer` function adds an Earth Engine object to a map as a layer, returning the new `ui.Map.Layer`. It accepts an `eeObject` (Collection, Feature, Image, or RawMapId), optional `visParams` for visualization, `name` for the layer's label, `shown` (boolean) to set default visibility, and `opacity` (0-1). Visualization parameters vary by object type; `color` is the only supported parameter for Features, while Images support `bands`, `min`, `max`, and `palette`. ImageCollections are mosaicked, and the last images take precedence.\n"]]