Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
ui.Map.CloudStorageLayer.setMaxZoom
Stay organized with collections
Save and categorize content based on your preferences.
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."],[],["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"]]