ui.Map.CloudStorageLayer.setMaxZoom
Sets the maximum zoom level for tiles. When the user zooms in beyond this level, the parent tile at this level will be fetched and zoomed on the client.
Returns this map layer.
Usage | Returns |
---|
CloudStorageLayer.setMaxZoom(maxZoom) | ui.Map.CloudStorageLayer |
Argument | Type | Details |
---|
this: ui.map.cloudstoragelayer | ui.Map.CloudStorageLayer | The ui.Map.CloudStorageLayer instance. |
maxZoom | Number | The maximum zoom level with 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 highest zoom level where tiles are displayed, beyond which the parent tile is fetched and zoomed on the client-side."],["The `setMaxZoom` method allows setting this maximum zoom level for a CloudStorageLayer and returns the layer instance for chaining."]]],["The `setMaxZoom` method configures the maximum zoom level for a `CloudStorageLayer`. When a user zooms beyond this `maxZoom` number, the parent tile at the specified level is fetched and zoomed client-side. This method, applied to a `ui.Map.CloudStorageLayer` instance, accepts a `Number` argument (`maxZoom`) defining the limit and returns the modified `ui.Map.CloudStorageLayer`.\n"]]