Earth Engine 已推出
非商業用途的配額級別,以便保護共用運算資源,並確保所有使用者都能享有穩固效能。非商業用途的專案預設會使用「社群」級別,但您隨時可以變更專案級別。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ui.data.ActiveList
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
類似陣列的資料容器,用於 UI 元件。
當 ui.data.ActiveList (例如 Map.layers()) 更新時,所屬元件也會更新。舉例來說,Map.layers().add(myLayer) 會將 myLayer 新增為地圖上的圖層。
| 用量 | 傳回 |
|---|
ui.data.ActiveList(list) | ui.data.ActiveList |
| 引數 | 類型 | 詳細資料 |
|---|
list | List[Object],選用 | 用於初始化的選用清單。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-01-08 (世界標準時間)。
[null,null,["上次更新時間:2026-01-08 (世界標準時間)。"],[],["`ui.data.ActiveList` is an array-like container that, when updated, triggers updates in its associated UI component. It can be initialized with a list. Actions like adding to the `ActiveList` directly reflect in the UI. For instance, `Map.layers().add(myLayer)` adds a layer to the map. The constructor `ui.data.ActiveList(list)` creates an `ActiveList` object, and it allows the input parameter list, which is an optional list used to initialize the container.\n"]]