ui.Map.Layer
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Warstwa wygenerowana na podstawie obiektu Earth Engine do wyświetlania na ui.Map.
Wykorzystanie | Zwroty |
---|
ui.Map.Layer(eeObject, visParams, name, shown, opacity) | ui.Map.Layer |
Argument | Typ | Szczegóły |
---|
eeObject | Collection|Feature|Image, opcjonalnie | Obiekt do dodania na mapie. Domyślnie jest to pusty obiekt ee.Image. |
visParams | FeatureVisualizationParameters|ImageVisualizationParameters, opcjonalny | Parametry wizualizacji. Zapoznaj się z dokumentacją funkcji ee.data.getMapId(). |
name | Ciąg znaków, opcjonalnie | Nazwa warstwy. |
shown | Wartość logiczna, opcjonalna | Określa, czy warstwa jest początkowo widoczna. Domyślna wartość to true. |
opacity | Numer, opcjonalny | Przezroczystość warstwy wyrażona jako wartość z zakresu od 0 do 1. Domyślna wartość to 1. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eCreates a map layer from an Earth Engine object (like Image, Feature, or Collection) for display on a ui.Map.\u003c/p\u003e\n"],["\u003cp\u003eCustomizable with visualization parameters, name, visibility, and opacity.\u003c/p\u003e\n"],["\u003cp\u003eDefaults to an empty ee.Image if no Earth Engine object is provided.\u003c/p\u003e\n"]]],["`ui.Map.Layer` creates a display layer from an Earth Engine object. It takes an `eeObject` (Collection, Feature, or Image), optional visualization parameters (`visParams`), a layer `name`, a `shown` boolean (defaulting to true), and an `opacity` number between 0 and 1 (defaulting to 1). The `eeObject` defaults to an empty image. It returns a `ui.Map.Layer` object which is added to the map.\n"],null,["# ui.Map.Layer\n\n\u003cbr /\u003e\n\nA layer generated from an Earth Engine object for display on a ui.Map.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------------------------------------|--------------|\n| `ui.Map.Layer(`*eeObject* `, `*visParams* `, `*name* `, `*shown* `, `*opacity*`)` | ui.Map.Layer |\n\n| Argument | Type | Details |\n|-------------|------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| `eeObject` | Collection\\|Feature\\|Image, optional | The object to add to the map. Defaults to an empty ee.Image. |\n| `visParams` | FeatureVisualizationParameters\\|ImageVisualizationParameters, optional | The visualization parameters. See ee.data.getMapId() docs. |\n| `name` | String, optional | The name of the layer. |\n| `shown` | Boolean, optional | Whether the layer is initially shown. Defaults to true. |\n| `opacity` | Number, optional | The layer's opacity represented as a number between 0 and 1. Defaults to 1. |"]]