Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.CloudStorageLayer.setBucket
Stay organized with collections
Save and categorize content based on your preferences.
Sets the bucket for this layer.
Returns this map layer.
Usage | Returns | CloudStorageLayer.setBucket(bucket) | ui.Map.CloudStorageLayer |
Argument | Type | Details | this: ui.map.cloudstoragelayer | ui.Map.CloudStorageLayer | The ui.Map.CloudStorageLayer instance. |
bucket | String | The name of the Cloud Storage bucket with this layer's tiles. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\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. |"]]