Earth Engine has introduced
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. Noncommercial projects use the Community Tier by default, though you can change a project's tier at any time.
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."],[],["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"]]