Earth Engine is introducing
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. All noncommercial projects will need to select a quota tier by
April 27, 2026 or will use the Community Tier by default. Tier quotas will take effect for all projects (regardless of tier selection date) on
April 27, 2026.
Learn more.
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"]]