ui.Map.CloudStorageLayer.setBucket
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."],[[["Defines the Cloud Storage bucket containing the tile data for the layer."],["Provides a method (`setBucket`) to specify the bucket for the layer."],["Returns the `ui.Map.CloudStorageLayer` instance, allowing for method chaining."],["`setBucket` takes the Cloud Storage bucket name as an argument."]]],["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"]]