Parametry wizualizacji. W przypadku obiektów Images i ImageCollection prawidłowe parametry znajdziesz w artykule ee.data.getMapId. W przypadku obiektów Feature i FeatureCollection jedynym obsługiwanym kluczem jest „color” (kolor) w postaci ciągu znaków koloru CSS 3.0 lub ciągu szesnastkowego w formacie „RRGGBB”. Ignorowane, gdy eeObject jest identyfikatorem mapy.
name
Ciąg znaków, opcjonalnie
Nazwa warstwy. Domyślna wartość to „Warstwa N”.
shown
Wartość logiczna, opcjonalna
Flaga wskazująca, czy warstwa powinna być domyślnie włączona.
opacity
Numer, opcjonalny
Przezroczystość warstwy wyrażona jako wartość z zakresu od 0 do 1. Domyślna wartość to 1.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]