公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ui.Map.CloudStorageLayer.setBucket
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
為這個圖層設定 bucket。
傳回這個地圖圖層。
用量 | 傳回 |
---|
CloudStorageLayer.setBucket(bucket) | ui.Map.CloudStorageLayer |
引數 | 類型 | 詳細資料 |
---|
這個:ui.map.cloudstoragelayer | ui.Map.CloudStorageLayer | ui.Map.CloudStorageLayer 執行個體。 |
bucket | 字串 | 包含這個圖層圖塊的 Cloud Storage 值區名稱。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eDefines the Cloud Storage bucket containing the tile data for the layer.\u003c/p\u003e\n"],["\u003cp\u003eProvides a method (\u003ccode\u003esetBucket\u003c/code\u003e) to specify the bucket for the layer.\u003c/p\u003e\n"],["\u003cp\u003eReturns the \u003ccode\u003eui.Map.CloudStorageLayer\u003c/code\u003e instance, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esetBucket\u003c/code\u003e takes the Cloud Storage bucket name as an argument.\u003c/p\u003e\n"]]],["The core function of `CloudStorageLayer.setBucket` is to assign a specific Cloud Storage bucket to a map layer. This method, when invoked on a `ui.Map.CloudStorageLayer` instance, takes a string argument named `bucket` representing the Cloud Storage bucket's name. After execution, it returns the `ui.Map.CloudStorageLayer` instance, effectively associating the provided bucket with that layer.\n"],null,["# ui.Map.CloudStorageLayer.setBucket\n\n\u003cbr /\u003e\n\nSets the bucket for this layer.\n\n\u003cbr /\u003e\n\nReturns this map layer.\n\n| Usage | Returns |\n|---------------------------------------|--------------------------|\n| CloudStorageLayer.setBucket`(bucket)` | ui.Map.CloudStorageLayer |\n\n| Argument | Type | Details |\n|----------------------------------|--------------------------|---------------------------------------------------------------|\n| this: `ui.map.cloudstoragelayer` | ui.Map.CloudStorageLayer | The ui.Map.CloudStorageLayer instance. |\n| `bucket` | String | The name of the Cloud Storage bucket with this layer's tiles. |"]]